Class TexturedCubeDisplayState
java.lang.Object
net.darkhax.botanypots.common.api.data.display.types.AbstractDisplay<BasicOptions>
net.darkhax.botanypots.common.impl.data.display.types.TexturedCubeDisplayState
- All Implemented Interfaces:
Display
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TexturedCubeDisplayState> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, TexturedCubeDisplayState> static final net.darkhax.bookshelf.common.api.function.CachedSupplier<DisplayType<TexturedCubeDisplayState>> static final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionTexturedCubeDisplayState(net.minecraft.resources.ResourceLocation texture, BasicOptions options) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationDisplayType<?> getType()The type of the display.Methods inherited from class net.darkhax.botanypots.common.api.data.display.types.AbstractDisplay
renderOptions
-
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<TexturedCubeDisplayState>> TYPE -
CODEC
-
STREAM
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,TexturedCubeDisplayState> STREAM
-
-
Constructor Details
-
TexturedCubeDisplayState
public TexturedCubeDisplayState(net.minecraft.resources.ResourceLocation texture, BasicOptions options)
-
-
Method Details
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
getType
Description copied from interface:DisplayThe type of the display. This is used to handle serialization and binding a display to a renderer.- Returns:
- The type of the display.
-