Package com.cake.azimuth.registration
Class VisualWrapperInterest
java.lang.Object
com.cake.azimuth.registration.VisualWrapperInterest
Used to limit the impact of wrapping visuals to only the block entities that need it.
This is necessary because wrapping visuals is slightly dodgy, and likely incurs some form of (small but non-zero) performance penalty.
This is not necessary for renderers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInterested(net.minecraft.world.level.block.entity.BlockEntityType<?> type) static voidregisterInterest(Predicate<net.minecraft.world.level.block.entity.BlockEntityType<?>> typePredicate) static voidresolve()
-
Constructor Details
-
VisualWrapperInterest
public VisualWrapperInterest()
-
-
Method Details
-
registerInterest
public static void registerInterest(Predicate<net.minecraft.world.level.block.entity.BlockEntityType<?>> typePredicate) -
resolve
public static void resolve() -
isInterested
public static boolean isInterested(net.minecraft.world.level.block.entity.BlockEntityType<?> type)
-