Class LogisticallyLinkedBehaviour

java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.simibubi.create.content.logistics.packagerLink.LogisticallyLinkedBehaviour

public class LogisticallyLinkedBehaviour extends BlockEntityBehaviour
  • Field Details

  • Constructor Details

    • LogisticallyLinkedBehaviour

      public LogisticallyLinkedBehaviour(SmartBlockEntity be, boolean global)
  • Method Details

    • getAllPresent

      public static Collection<LogisticallyLinkedBehaviour> getAllPresent(UUID freq, boolean sortByPriority)
    • getAllPresent

      public static Collection<LogisticallyLinkedBehaviour> getAllPresent(UUID freq, boolean sortByPriority, boolean clientSide)
    • keepAlive

      public static void keepAlive(LogisticallyLinkedBehaviour behaviour)
    • remove

      public static void remove(LogisticallyLinkedBehaviour behaviour)
    • unload

      public void unload()
      Description copied from class: BlockEntityBehaviour
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      unload in class BlockEntityBehaviour
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class BlockEntityBehaviour
    • initialize

      public void initialize()
      Overrides:
      initialize in class BlockEntityBehaviour
    • destroy

      public void destroy()
      Description copied from class: BlockEntityBehaviour
      Block destroyed or removed. Requires block to call ITE::onRemove
      Overrides:
      destroy in class BlockEntityBehaviour
    • redstonePowerChanged

      public void redstonePowerChanged(int power)
    • processRequest

      public net.createmod.catnip.data.Pair<PackagerBlockEntity,PackagingRequest> processRequest(net.minecraft.world.item.ItemStack stack, int amount, String address, int linkIndex, org.apache.commons.lang3.mutable.MutableBoolean finalLink, int orderId, @Nullable PackageOrder orderContext, @Nullable net.neoforged.neoforge.items.IItemHandler ignoredHandler)
    • getSummary

      public InventorySummary getSummary(@Nullable net.neoforged.neoforge.items.IItemHandler ignoredHandler)
    • deductFromAccurateSummary

      public void deductFromAccurateSummary(net.neoforged.neoforge.items.ItemStackHandler packageContents)
    • mayInteract

      public boolean mayInteract(net.minecraft.world.entity.player.Player player)
    • mayInteractMessage

      public boolean mayInteractMessage(net.minecraft.world.entity.player.Player player)
    • mayAdministrate

      public boolean mayAdministrate(net.minecraft.world.entity.player.Player player)
    • isValidLink

      public static boolean isValidLink(LogisticallyLinkedBehaviour link)
    • isSafeNBT

      public boolean isSafeNBT()
      Overrides:
      isSafeNBT in class BlockEntityBehaviour
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from class: BlockEntityBehaviour
      Called when isSafeNBT == true. Defaults to write()
      Overrides:
      writeSafe in class BlockEntityBehaviour
    • write

      public void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      write in class BlockEntityBehaviour
    • read

      public void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      read in class BlockEntityBehaviour
    • getType

      public BehaviourType<?> getType()
      Specified by:
      getType in class BlockEntityBehaviour