Class SimpleDisplayState
java.lang.Object
net.darkhax.botanypots.data.displaystate.DisplayState
net.darkhax.botanypots.data.displaystate.AbstractSimpleDisplayState
net.darkhax.botanypots.data.displaystate.SimpleDisplayState
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final DisplayStateSerializer<SimpleDisplayState>Fields inherited from class net.darkhax.botanypots.data.displaystate.AbstractSimpleDisplayState
offset, renderFluid, rotations, scale -
Constructor Summary
ConstructorsConstructorDescriptionSimpleDisplayState(net.minecraft.world.level.block.state.BlockState state) SimpleDisplayState(net.minecraft.world.level.block.state.BlockState state, Optional<org.joml.Vector3f> scale, Optional<org.joml.Vector3f> offset, List<AxisAlignedRotation> rotations, boolean renderFluid) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStategetRenderState(float progress) Methods inherited from class net.darkhax.botanypots.data.displaystate.DisplayState
getSerializer, init
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
SERIALIZER
-
-
Constructor Details
-
SimpleDisplayState
public SimpleDisplayState(net.minecraft.world.level.block.state.BlockState state) -
SimpleDisplayState
public SimpleDisplayState(net.minecraft.world.level.block.state.BlockState state, Optional<org.joml.Vector3f> scale, Optional<org.joml.Vector3f> offset, List<AxisAlignedRotation> rotations, boolean renderFluid)
-
-
Method Details
-
getRenderState
public net.minecraft.world.level.block.state.BlockState getRenderState(float progress) - Specified by:
getRenderStatein classAbstractSimpleDisplayState
-
getSerializer
- Specified by:
getSerializerin classDisplayState
-