Class BaseChiselingContainer

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.supermartijn642.core.gui.BaseContainer
com.supermartijn642.rechiseled.screen.BaseChiselingContainer
Direct Known Subclasses:
ChiselContainer

public abstract class BaseChiselingContainer extends com.supermartijn642.core.gui.BaseContainer
Created 22/12/2021 by SuperMartijn642
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
     
     

    Fields inherited from class com.supermartijn642.core.gui.BaseContainer

    level, player

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseChiselingContainer(com.supermartijn642.core.gui.BaseContainerType<?> type, net.minecraft.world.entity.player.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addSlots(net.minecraft.world.entity.player.Player playerEntity)
     
    void
     
    abstract net.minecraft.world.item.ItemStack
     
    protected boolean
    moveItemStackTo(net.minecraft.world.item.ItemStack stack, int minSlot, int maxSlot, boolean reversed)
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    void
    setCurrentEntry(int index)
     
    abstract void
    setCurrentStack(net.minecraft.world.item.ItemStack stack)
     
    abstract boolean
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player playerIn)
     
    void
     
    protected void
     

    Methods inherited from class com.supermartijn642.core.gui.BaseContainer

    addPlayerSlots, addSlots, getContainerType, setContainerId

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • BaseChiselingContainer

      public BaseChiselingContainer(com.supermartijn642.core.gui.BaseContainerType<?> type, net.minecraft.world.entity.player.Player player)
  • Method Details

    • addSlots

      protected void addSlots(net.minecraft.world.entity.player.Player playerEntity)
      Specified by:
      addSlots in class com.supermartijn642.core.gui.BaseContainer
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      stillValid in class com.supermartijn642.core.gui.BaseContainer
    • updateRecipe

      protected void updateRecipe()
    • setCurrentEntry

      public void setCurrentEntry(int index)
    • toggleConnecting

      public void toggleConnecting()
    • chiselAll

      public void chiselAll()
    • getCurrentStack

      public abstract net.minecraft.world.item.ItemStack getCurrentStack()
    • setCurrentStack

      public abstract void setCurrentStack(net.minecraft.world.item.ItemStack stack)
    • shouldBeClosed

      public abstract boolean shouldBeClosed()
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • moveItemStackTo

      protected boolean moveItemStackTo(net.minecraft.world.item.ItemStack stack, int minSlot, int maxSlot, boolean reversed)
      Overrides:
      moveItemStackTo in class net.minecraft.world.inventory.AbstractContainerMenu