Class AbstractShroomModel<T extends BasePlant>

java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
net.minecraft.client.model.HierarchicalModel<T>
nokunami.floral_warfare.client.model.FWHierarchicalModel<T>
nokunami.floral_warfare.client.model.plants.abstractModel.AbstractShroomModel<T>
All Implemented Interfaces:
net.minecraft.client.model.HeadedModel, IFloralWarfareModel<T>
Direct Known Subclasses:
DoomShroomModel, FumeShroomModel, IceShroomModel, PuffShroomModel, ScaredyShroomModel, SunShroomModel

public abstract class AbstractShroomModel<T extends BasePlant> extends FWHierarchicalModel<T> implements net.minecraft.client.model.HeadedModel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.client.model.geom.ModelPart
     
    final net.minecraft.client.model.geom.ModelPart
     

    Fields inherited from class net.minecraft.client.model.EntityModel

    attackTime, riding, young

    Fields inherited from class net.minecraft.client.model.Model

    renderType
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractShroomModel(net.minecraft.client.model.geom.ModelPart root)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    blink(T entity, float partialTick)
     
    static net.minecraft.client.model.geom.builders.MeshDefinition
     
    void
    extraAnim(T entity, FWModelProperties properties)
     
    @NotNull net.minecraft.client.model.geom.ModelPart
     
    void
    renderToBuffer(@NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, @NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha)
     
    void
    setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
     

    Methods inherited from class nokunami.floral_warfare.client.model.FWHierarchicalModel

    blinkParts, root

    Methods inherited from class net.minecraft.client.model.HierarchicalModel

    animate, animate, animateWalk, applyStatic, getAnyDescendantWithName

    Methods inherited from class net.minecraft.client.model.EntityModel

    copyPropertiesTo, prepareMobModel

    Methods inherited from class net.minecraft.client.model.Model

    renderType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bone

      public final net.minecraft.client.model.geom.ModelPart bone
    • stemBase

      public final net.minecraft.client.model.geom.ModelPart stemBase
  • Constructor Details

    • AbstractShroomModel

      public AbstractShroomModel(net.minecraft.client.model.geom.ModelPart root)
  • Method Details

    • createMesh

      public static net.minecraft.client.model.geom.builders.MeshDefinition createMesh()
    • setupAnim

      public void setupAnim(@NotNull T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch)
      Specified by:
      setupAnim in class net.minecraft.client.model.EntityModel<T extends BasePlant>
    • renderToBuffer

      public void renderToBuffer(@NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, @NotNull @NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha)
      Overrides:
      renderToBuffer in class net.minecraft.client.model.HierarchicalModel<T extends BasePlant>
    • getHead

      @NotNull public @NotNull net.minecraft.client.model.geom.ModelPart getHead()
      Specified by:
      getHead in interface net.minecraft.client.model.HeadedModel
    • extraAnim

      public void extraAnim(T entity, FWModelProperties properties)
      Specified by:
      extraAnim in interface IFloralWarfareModel<T extends BasePlant>
      Overrides:
      extraAnim in class FWHierarchicalModel<T extends BasePlant>
    • blink

      public void blink(T entity, float partialTick)
      Overrides:
      blink in class FWHierarchicalModel<T extends BasePlant>