Class BasinBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class BasinBlockEntity extends SmartBlockEntity implements IHaveGoggleInformation
  • Field Details

    • inputInventory

      public BasinInventory inputInventory
    • inputTank

      public SmartFluidTankBehaviour inputTank
    • outputInventory

      protected SmartInventory outputInventory
    • outputTank

      protected SmartFluidTankBehaviour outputTank
    • itemCapability

      protected net.neoforged.neoforge.items.IItemHandlerModifiable itemCapability
    • fluidCapability

      protected net.neoforged.neoforge.fluids.capability.IFluidHandler fluidCapability
    • spoutputBuffer

      protected List<net.minecraft.world.item.ItemStack> spoutputBuffer
    • spoutputFluidBuffer

      protected List<net.neoforged.neoforge.fluids.FluidStack> spoutputFluidBuffer
    • OUTPUT_ANIMATION_TIME

      public static final int OUTPUT_ANIMATION_TIME
      See Also:
  • Constructor Details

    • BasinBlockEntity

      public BasinBlockEntity(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)
      Specified by:
      addBehaviours in class SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, 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
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, 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
    • destroy

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

      public void remove()
      Description copied from class: SmartBlockEntity
      Block destroyed or picked up by a contraption. Usually detaches kinetics
      Overrides:
      remove in class SmartBlockEntity
    • onEmptied

      public void onEmptied()
    • invalidate

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

      public void notifyUpdate()
      Overrides:
      notifyUpdate in class SyncedBlockEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • isEmpty

      public boolean isEmpty()
    • onWrenched

      public void onWrenched(net.minecraft.core.Direction face)
    • tick

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

      public float getTotalFluidUnits(float partialTicks)
    • getFilter

      public FilteringBehaviour getFilter()
    • notifyChangeOfContents

      public void notifyChangeOfContents()
    • getInputInventory

      public SmartInventory getInputInventory()
    • getOutputInventory

      public SmartInventory getOutputInventory()
    • canContinueProcessing

      public boolean canContinueProcessing()
    • acceptOutputs

      public boolean acceptOutputs(List<net.minecraft.world.item.ItemStack> outputItems, List<net.neoforged.neoforge.fluids.FluidStack> outputFluids, boolean simulate)
    • readOnlyItems

      public void readOnlyItems(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries)
    • getHeatLevelOf

      public static BlazeBurnerBlock.HeatLevel getHeatLevelOf(net.minecraft.world.level.block.state.BlockState state)
    • getTanks

      public net.createmod.catnip.data.Couple<SmartFluidTankBehaviour> getTanks()
    • getInvs

      public net.createmod.catnip.data.Couple<SmartInventory> getInvs()
    • areFluidsMoving

      public boolean areFluidsMoving()
    • setAreFluidsMoving

      public boolean setAreFluidsMoving(boolean areFluidsMoving)
    • addToGoggleTooltip

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