Class SellingBinBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
com.wdiscute.sellingbin.bin.SellingBinBlockEntity
All Implemented Interfaces:
Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.entity.SlotProvider, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.WorldlyContainer, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.ContainerExtension, net.neoforged.neoforge.common.extensions.IBlockEntityExtension, net.neoforged.neoforge.common.extensions.IMenuProviderExtension, net.nikdo53.tinymultiblocklib.blockentities.IMultiBlockEntity

public class SellingBinBlockEntity extends net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity implements net.minecraft.world.WorldlyContainer, net.minecraft.world.MenuProvider
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField

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

    net.minecraft.world.Container.ContainerIterator

    Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource

    net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
     
    boolean
     
    boolean
     
    int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

    Constructors
    Constructor
    Description
    SellingBinBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItemThroughFace(int i, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.core.Direction direction)
     
    boolean
    canTakeItemThroughFace(int i, net.minecraft.world.item.ItemStack itemStack, net.minecraft.core.Direction direction)
     
    void
     
    net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player)
     
    void
     
    void
     
    int
     
    net.minecraft.network.chat.Component
     
    net.minecraft.world.item.ItemStack
    getItem(int slot)
     
    protected net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     
    int
     
    int[]
    getSlotsForFace(net.minecraft.core.Direction direction)
     
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    boolean
     
    protected void
    loadAdditional(net.minecraft.world.level.storage.ValueInput input)
     
    net.minecraft.world.item.ItemStack
    removeItem(int slot, int amount)
     
    net.minecraft.world.item.ItemStack
     
    protected void
    saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
     
    void
    sell(boolean all)
     
    void
    setItem(int slot, net.minecraft.world.item.ItemStack stack)
     
    void
    startOpen(net.minecraft.world.entity.ContainerUser containerUser)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    void
    stopOpen(net.minecraft.world.entity.ContainerUser containerUser)
     
    void
     
    void
     
    void
     
    void
     

    Methods inherited from class net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity

    getFullBlockShapeCache, getOffset, getUpdateTag, invalidateCaches, isPlaced, setFullBlockShapeCache, setOffset, setPlaced

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getAndClearAttachmentTypesToSync, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, triggerEvent, typeHolder

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Container

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

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

    onTransfer, setItem

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

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

    getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate

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

    shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData

    Methods inherited from interface net.nikdo53.tinymultiblocklib.blockentities.IMultiBlockEntity

    getBlockEntity, getCenter, getPreviewMode, isCenter, setCenter, setPreviewMode

    Methods inherited from interface Iterable

    forEach, spliterator

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

    getSlotsFromRange

    Methods inherited from interface net.minecraft.core.TypedInstance

    is, is, is, is, is, tags
  • Field Details

    • storedProgress

      public int storedProgress
    • instaSell

      public boolean instaSell
    • sound

      public boolean sound
    • currencySelected

      public Currency currencySelected
    • currencies

      public List<Currency> currencies
    • currenciesReversed

      public List<Currency> currenciesReversed
  • Constructor Details

    • SellingBinBlockEntity

      public SellingBinBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • startOpen

      public void startOpen(net.minecraft.world.entity.ContainerUser containerUser)
      Specified by:
      startOpen in interface net.minecraft.world.Container
    • stopOpen

      public void stopOpen(net.minecraft.world.entity.ContainerUser containerUser)
      Specified by:
      stopOpen in interface net.minecraft.world.Container
    • sell

      public void sell(boolean all)
    • getProgressAvailable

      public int getProgressAvailable()
    • forceUpdate

      public void forceUpdate()
    • update

      public void update()
    • createMenu

      @Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • saveAdditional

      protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
      Overrides:
      saveAdditional in class net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
    • loadAdditional

      protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input)
      Overrides:
      loadAdditional in class net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.nikdo53.tinymultiblocklib.blockentities.AbstractMultiBlockEntity
    • getItems

      protected net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getItems()
    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
    • getItem

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

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

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

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

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

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider
    • updateToClient

      public void updateToClient()
    • getSlotsForFace

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

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

      public boolean canTakeItemThroughFace(int i, net.minecraft.world.item.ItemStack itemStack, net.minecraft.core.Direction direction)
      Specified by:
      canTakeItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • tick

      public void tick()
    • cycleCurrency

      public void cycleCurrency()
    • toggleSound

      public void toggleSound()