Package net.createmod.catnip.render
Class VirtualRenderHelper
java.lang.Object
net.createmod.catnip.render.VirtualRenderHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.client.model.data.ModelDatastatic final net.neoforged.neoforge.client.model.data.ModelProperty<Boolean> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic dev.engine_room.flywheel.api.model.ModelblockModel(net.minecraft.world.level.block.state.BlockState state) A copy ofModels.block(BlockState), but with virtual model data passed in.static booleanisVirtual(net.neoforged.neoforge.client.model.data.ModelData data)
-
Field Details
-
VIRTUAL_PROPERTY
public static final net.neoforged.neoforge.client.model.data.ModelProperty<Boolean> VIRTUAL_PROPERTY -
VIRTUAL_DATA
public static final net.neoforged.neoforge.client.model.data.ModelData VIRTUAL_DATA
-
-
Constructor Details
-
VirtualRenderHelper
public VirtualRenderHelper()
-
-
Method Details
-
isVirtual
public static boolean isVirtual(net.neoforged.neoforge.client.model.data.ModelData data) -
blockModel
public static dev.engine_room.flywheel.api.model.Model blockModel(net.minecraft.world.level.block.state.BlockState state) A copy ofModels.block(BlockState), but with virtual model data passed in.- Parameters:
state- The block state to get the model for.- Returns:
- The model for the given block state.
-