Class ChuteBlockEntity

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
Direct Known Subclasses:
SmartChuteBlockEntity

@ParametersAreNonnullByDefault public class ChuteBlockEntity extends SmartBlockEntity implements IHaveGoggleInformation
  • Constructor Details

    • ChuteBlockEntity

      public ChuteBlockEntity(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
    • canDirectlyInsertCached

      public boolean canDirectlyInsertCached()
    • initialize

      public void initialize()
      Overrides:
      initialize in class SmartBlockEntity
    • createRenderBoundingBox

      protected net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class CachedRenderBBBlockEntity
    • tick

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

      public void blockBelowChanged()
    • canAcceptItem

      protected boolean canAcceptItem(net.minecraft.world.item.ItemStack stack)
    • getExtractionAmount

      protected int getExtractionAmount()
    • getExtractionMode

      protected ItemHelper.ExtractionCountMode getExtractionMode()
    • canActivate

      protected boolean canActivate()
    • setItem

      public void setItem(net.minecraft.world.item.ItemStack stack)
    • setItem

      public void setItem(net.minecraft.world.item.ItemStack stack, float insertionPos)
    • invalidate

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate 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
    • 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
    • getItemMotion

      public float getItemMotion()
    • destroy

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

      public void onAdded()
    • updatePull

      public void updatePull()
    • updatePush

      public void updatePush(int branchCount)
    • propagatePush

      public void propagatePush()
    • calculatePull

      protected float calculatePull()
    • calculatePush

      protected float calculatePush(int branchCount)
    • 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
    • getItem

      public net.minecraft.world.item.ItemStack getItem()