Class StockTickerBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class StockTickerBlockEntity extends StockCheckingBlockEntity implements IHaveHoveringInformation
  • Field Details

    • computerBehaviour

      public AbstractComputerBehaviour computerBehaviour
    • lastClientsideStockSnapshot

      protected List<List<BigItemStack>> lastClientsideStockSnapshot
    • lastClientsideStockSnapshotAsSummary

      protected InventorySummary lastClientsideStockSnapshotAsSummary
    • newlyReceivedStockSnapshot

      protected List<BigItemStack> newlyReceivedStockSnapshot
    • previouslyUsedAddress

      protected String previouslyUsedAddress
    • ticksSinceLastUpdate

      protected int ticksSinceLastUpdate
    • categories

      protected List<net.minecraft.world.item.ItemStack> categories
    • hiddenCategoriesByPlayer

      protected Map<UUID,List<Integer>> hiddenCategoriesByPlayer
    • receivedPayments

      protected SmartInventory receivedPayments
  • Constructor Details

    • StockTickerBlockEntity

      public StockTickerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • registerCapabilities

      public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class StockCheckingBlockEntity
    • invalidate

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate in class SmartBlockEntity
    • refreshClientStockSnapshot

      public void refreshClientStockSnapshot()
    • getReceivedPaymentsHandler

      public net.neoforged.neoforge.items.IItemHandler getReceivedPaymentsHandler()
    • getClientStockSnapshot

      public List<List<BigItemStack>> getClientStockSnapshot()
    • getLastClientsideStockSnapshotAsSummary

      public InventorySummary getLastClientsideStockSnapshotAsSummary()
    • getTicksSinceLastUpdate

      public int getTicksSinceLastUpdate()
    • broadcastPackageRequest

      public boolean broadcastPackageRequest(LogisticallyLinkedBehaviour.RequestType type, PackageOrderWithCrafts order, IdentifiedInventory ignoredHandler, String address)
      Overrides:
      broadcastPackageRequest in class StockCheckingBlockEntity
    • getRecentSummary

      public InventorySummary getRecentSummary()
      Overrides:
      getRecentSummary in class StockCheckingBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class SmartBlockEntity
    • write

      protected void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartBlockEntity
    • receiveStockPacket

      public void receiveStockPacket(List<BigItemStack> stacks, boolean endOfTransmission)
    • isKeeperPresent

      public boolean isKeeperPresent()
    • addToTooltip

      public boolean addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Description copied from interface: IHaveHoveringInformation
      This method will be called when looking at a BlockEntity that implements this interface
      Specified by:
      addToTooltip in interface IHaveHoveringInformation
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed
    • destroy

      public void destroy()
      Description copied from class: SmartBlockEntity
      Block destroyed or replaced. Requires Block to call IBE::onRemove
      Overrides:
      destroy in class SmartBlockEntity
    • playEffect

      public void playEffect()