Class ChestManager.ChestInfo

java.lang.Object
io.github.vampirestudios.vampirelib.ChestManager.ChestInfo
Enclosing class:
ChestManager

public static class ChestManager.ChestInfo extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChestInfo(String modId, String type, boolean trapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.resources.model.Material
    Gets this info's left Material.
    net.minecraft.client.resources.model.Material
    Gets this info's right Material.
    net.minecraft.client.resources.model.Material
    Gets this info's default/single Material.
    void
    setup(Consumer<net.minecraft.resources.ResourceLocation> event)
    Adds the internal textures to the stitch event and initializes the Materials.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChestInfo

      public ChestInfo(String modId, String type, boolean trapped)
  • Method Details

    • setup

      @Environment(CLIENT) public void setup(Consumer<net.minecraft.resources.ResourceLocation> event)
      Adds the internal textures to the stitch event and initializes the Materials.
      Parameters:
      event - A TextureStitchCallback.Pre to setup this info from.
    • getSingleMaterial

      @Environment(CLIENT) public net.minecraft.client.resources.model.Material getSingleMaterial()
      Gets this info's default/single Material.
      Returns:
      This info's default/single Material.
    • getLeftMaterial

      @Environment(CLIENT) public net.minecraft.client.resources.model.Material getLeftMaterial()
      Gets this info's left Material.
      Returns:
      This info's left Material.
    • getRightMaterial

      @Environment(CLIENT) public net.minecraft.client.resources.model.Material getRightMaterial()
      Gets this info's right Material.
      Returns:
      This info's right Material.