Interface TackleBoxWorldlyContainerHelper

All Superinterfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.neoforged.neoforge.common.extensions.ContainerExtension, Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.world.entity.SlotProvider, net.minecraft.world.WorldlyContainer
All Known Implementing Classes:
TackleBoxBlockEntity, TackleBoxBoatEntity

public interface TackleBoxWorldlyContainerHelper extends net.minecraft.world.WorldlyContainer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.Container

    net.minecraft.world.Container.ContainerIterator
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    canPlaceItemThroughFace(int index, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.core.Direction direction)
     
    default boolean
    canTakeItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction)
     
    default void
     
    default int
     
    default net.minecraft.world.item.ItemStack
    getItem(int slot)
     
    default int[]
    getSlotsForFace(net.minecraft.core.Direction side)
     
     
    default boolean
     
    default net.minecraft.world.item.ItemStack
    removeItem(int slot, int amount)
     
    default net.minecraft.world.item.ItemStack
     
    default void
    setItem(int slot, net.minecraft.world.item.ItemStack stack)
     
    default boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpen

    Methods inherited from interface net.neoforged.neoforge.common.extensions.ContainerExtension

    onTransfer, setItem

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface net.minecraft.world.entity.SlotProvider

    getSlotsFromRange
  • Method Details

    • getTackleBoxContainer

      TackleBoxContainer getTackleBoxContainer()
    • getSlotsForFace

      default int[] getSlotsForFace(net.minecraft.core.Direction side)
      Specified by:
      getSlotsForFace in interface net.minecraft.world.WorldlyContainer
    • canPlaceItemThroughFace

      default boolean canPlaceItemThroughFace(int index, net.minecraft.world.item.ItemStack itemStack, @Nullable @Nullable net.minecraft.core.Direction direction)
      Specified by:
      canPlaceItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • canTakeItemThroughFace

      default boolean canTakeItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction)
      Specified by:
      canTakeItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • isEmpty

      default boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
    • clearContent

      default void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • getItem

      default net.minecraft.world.item.ItemStack getItem(int slot)
      Specified by:
      getItem in interface net.minecraft.world.Container
    • removeItem

      default net.minecraft.world.item.ItemStack removeItem(int slot, int amount)
      Specified by:
      removeItem in interface net.minecraft.world.Container
    • removeItemNoUpdate

      default net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
    • setItem

      default void setItem(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
    • stillValid

      default boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
    • getContainerSize

      default int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container