Class EntityInlineData

java.lang.Object
com.samsthenerd.inline.api.data.EntityInlineData
All Implemented Interfaces:
InlineData<EntityInlineData>

public class EntityInlineData extends Object implements InlineData<EntityInlineData>
  • Field Details

    • random

      protected static final net.minecraft.util.math.random.Random random
    • uniqueOffset

      protected float uniqueOffset
    • cradle

      public final EntityCradle cradle
  • Constructor Details

    • EntityInlineData

      public EntityInlineData(EntityCradle cradle)
  • Method Details

    • fromEntity

      public static EntityInlineData fromEntity(net.minecraft.entity.Entity entity)
    • fromNbt

      public static EntityInlineData fromNbt(net.minecraft.nbt.NbtCompound tag)
    • fromType

      public static EntityInlineData fromType(net.minecraft.entity.EntityType type)
    • getType

      Description copied from interface: InlineData
      Gets the InlineDataType of this data. Used mostly for serialization.
      Specified by:
      getType in interface InlineData<EntityInlineData>
      Returns:
      type of this data.
    • getRendererId

      public net.minecraft.util.Identifier getRendererId()
      Description copied from interface: InlineData
      Gets which InlineRenderer should be used for rendering this data.
      Specified by:
      getRendererId in interface InlineData<EntityInlineData>
      Returns:
      id of renderer
    • getEntity

      @Nullable public net.minecraft.entity.Entity getEntity(net.minecraft.world.World world)
    • getUniqueOffset

      public float getUniqueOffset()
    • getEntityDisplayHoverEvent

      public net.minecraft.text.HoverEvent getEntityDisplayHoverEvent()
    • getDataStyle

      public net.minecraft.text.Style getDataStyle(boolean withAdditional)