Class FWBlockEntityModel<T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
net.minecraft.client.model.Model
nokunami.floral_warfare.client.model.blocks.FWBlockEntityModel<T>
- Direct Known Subclasses:
ZenBeaconModel
public abstract class FWBlockEntityModel<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends net.minecraft.client.model.Model
-
Field Summary
Fields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
ConstructorsConstructorDescriptionFWBlockEntityModel(net.minecraft.client.model.geom.ModelPart part, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimate(net.minecraft.world.entity.AnimationState pAnimationState, net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pAgeInTicks) protected voidanimate(net.minecraft.world.entity.AnimationState pAnimationState, net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pAgeInTicks, float pSpeed) protected voidanimateWalk(net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pLimbSwing, float pLimbSwingAmount, float pMaxAnimationSpeed, float pAnimationScaleFactor) protected voidapplyStatic(net.minecraft.client.animation.AnimationDefinition pAnimationDefinition) Optional<net.minecraft.client.model.geom.ModelPart>getAnyDescendantWithName(String pName) voidrenderToBuffer(@NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, @NotNull com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) net.minecraft.client.model.geom.ModelPartroot()abstract voidMethods inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Details
-
FWBlockEntityModel
public FWBlockEntityModel(net.minecraft.client.model.geom.ModelPart part, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderType)
-
-
Method Details
-
setupAnim
-
renderToBuffer
public void renderToBuffer(@NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, @NotNull @NotNull com.mojang.blaze3d.vertex.VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) - Specified by:
renderToBufferin classnet.minecraft.client.model.Model
-
root
public net.minecraft.client.model.geom.ModelPart root() -
getAnyDescendantWithName
-
animate
protected void animate(net.minecraft.world.entity.AnimationState pAnimationState, net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pAgeInTicks) -
animateWalk
protected void animateWalk(net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pLimbSwing, float pLimbSwingAmount, float pMaxAnimationSpeed, float pAnimationScaleFactor) -
animate
protected void animate(net.minecraft.world.entity.AnimationState pAnimationState, net.minecraft.client.animation.AnimationDefinition pAnimationDefinition, float pAgeInTicks, float pSpeed) -
applyStatic
protected void applyStatic(net.minecraft.client.animation.AnimationDefinition pAnimationDefinition)
-