Class Generic9X3Container


public class Generic9X3Container extends Container
A "hack" to be able to use existing barrels. The only difference to chests appears to be the different ContainerSlotType - this accounts for it.
  • Constructor Details

    • Generic9X3Container

      public Generic9X3Container(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType)
  • Method Details

    • setUsingRealBlock

      public void setUsingRealBlock(boolean usingRealBlock, Block block)
      Description copied from class: Container
      Will be overwritten for droppers.
      Overrides:
      setUsingRealBlock in class Container
      Parameters:
      usingRealBlock - whether this container is using a real container or not
      block - the Java block, if real
    • isBarrel

      public boolean isBarrel()
    • setBarrel

      public void setBarrel(boolean isBarrel)