Class EntityDisplayState

java.lang.Object
net.darkhax.botanypots.common.impl.data.display.types.EntityDisplayState
All Implemented Interfaces:
Display

public class EntityDisplayState extends Object implements Display
  • Field Details

    • TYPE_ID

      public static final net.minecraft.resources.ResourceLocation TYPE_ID
    • TYPE

      public static final net.darkhax.bookshelf.common.api.function.CachedSupplier<DisplayType<EntityDisplayState>> TYPE
    • CODEC

      public static final com.mojang.serialization.MapCodec<EntityDisplayState> CODEC
    • STREAM

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,EntityDisplayState> STREAM
  • Constructor Details

    • EntityDisplayState

      public EntityDisplayState(net.minecraft.nbt.CompoundTag displayEntity, boolean shouldTick, int spinSpeed, org.joml.Vector3f scale, Optional<org.joml.Vector3f> offset)
  • Method Details

    • getEntityData

      public net.minecraft.nbt.CompoundTag getEntityData()
    • shouldTickEntity

      public boolean shouldTickEntity()
    • getSpinSpeed

      public int getSpinSpeed()
    • getScale

      public org.joml.Vector3f getScale()
    • getOffset

      public Optional<org.joml.Vector3f> getOffset()
    • getDisplayEntity

      public net.darkhax.bookshelf.common.api.function.ReloadableCache<net.minecraft.world.entity.Entity> getDisplayEntity()
    • getType

      public DisplayType<?> getType()
      Description copied from interface: Display
      The type of the display. This is used to handle serialization and binding a display to a renderer.
      Specified by:
      getType in interface Display
      Returns:
      The type of the display.