Class EntityDisplayState
java.lang.Object
net.darkhax.botanypots.common.impl.data.display.types.EntityDisplayState
- All Implemented Interfaces:
Display
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EntityDisplayState> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, EntityDisplayState> static final net.darkhax.bookshelf.common.api.function.CachedSupplier<DisplayType<EntityDisplayState>> static final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionEntityDisplayState(net.minecraft.nbt.CompoundTag displayEntity, boolean shouldTick, int spinSpeed, org.joml.Vector3f scale, Optional<org.joml.Vector3f> offset) -
Method Summary
Modifier and TypeMethodDescriptionnet.darkhax.bookshelf.common.api.function.ReloadableCache<net.minecraft.world.entity.Entity> net.minecraft.nbt.CompoundTagOptional<org.joml.Vector3f> org.joml.Vector3fgetScale()intDisplayType<?> getType()The type of the display.boolean
-
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
-
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
-
getDisplayEntity
public net.darkhax.bookshelf.common.api.function.ReloadableCache<net.minecraft.world.entity.Entity> getDisplayEntity() -
getType
Description copied from interface:DisplayThe type of the display. This is used to handle serialization and binding a display to a renderer.
-