Package com.samsthenerd.inline.api.data
Class EntityInlineData
java.lang.Object
com.samsthenerd.inline.api.data.EntityInlineData
- All Implemented Interfaces:
InlineData<EntityInlineData>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.samsthenerd.inline.api.InlineData
InlineData.InlineDataType<D extends InlineData<D>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal EntityCradle
protected static final net.minecraft.util.math.random.Random
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityInlineData
fromEntity
(net.minecraft.entity.Entity entity) static EntityInlineData
fromNbt
(net.minecraft.nbt.NbtCompound tag) static EntityInlineData
fromType
(net.minecraft.entity.EntityType type) net.minecraft.text.Style
getDataStyle
(boolean withAdditional) net.minecraft.entity.Entity
getEntity
(net.minecraft.world.World world) net.minecraft.text.HoverEvent
net.minecraft.util.Identifier
Gets whichInlineRenderer
should be used for rendering this data.getType()
Gets the InlineDataType of this data.float
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.samsthenerd.inline.api.InlineData
asStyle, asText, getExtraStyle
-
Field Details
-
random
protected static final net.minecraft.util.math.random.Random random -
uniqueOffset
protected float uniqueOffset -
cradle
-
-
Constructor Details
-
EntityInlineData
-
-
Method Details
-
fromEntity
-
fromNbt
-
fromType
-
getType
Description copied from interface:InlineData
Gets the InlineDataType of this data. Used mostly for serialization.- Specified by:
getType
in interfaceInlineData<EntityInlineData>
- Returns:
- type of this data.
-
getRendererId
public net.minecraft.util.Identifier getRendererId()Description copied from interface:InlineData
Gets whichInlineRenderer
should be used for rendering this data.- Specified by:
getRendererId
in interfaceInlineData<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)
-