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

public class TexturedCubeDisplayState extends AbstractDisplay<BasicOptions>
  • 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

      public static final com.mojang.serialization.MapCodec<TexturedCubeDisplayState> 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

      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.
      Returns:
      The type of the display.