Interface IMandrelAnimation
- All Known Implementing Classes:
CoilMandrelAnimation,PipeMandrelAnimation
public interface IMandrelAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IMandrelAnimation> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, IMandrelAnimation> static final com.mojang.serialization.Codec<IMandrelAnimation> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionvoidanimate(MandrelBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay, float shaftAngle, float recipeProgress) floatThe angle (in degrees) by which the Shaft must turn over the course of this whole animation.getType()
-
Field Details
-
TYPED_CODEC
UseCODECinstead. -
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IMandrelAnimation> STREAM_CODEC
-
-
Method Details
-
getTotalAngleSubtended
The angle (in degrees) by which the Shaft must turn over the course of this whole animation. -
animate
void animate(MandrelBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay, float shaftAngle, float recipeProgress) -
getType
MandrelAnimationType getType()
-