Class ChuteTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
IHaveGoggleInformation, IInteractionChecker, IPartialSafeNBT, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
SmartChuteTileEntity

@ParametersAreNonnullByDefault public class ChuteTileEntity extends SmartTileEntity implements IHaveGoggleInformation
  • Constructor Details

    • ChuteTileEntity

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

    • addBehaviours

      public void addBehaviours(List<TileEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartTileEntity
    • canDirectlyInsertCached

      public boolean canDirectlyInsertCached()
    • initialize

      public void initialize()
      Overrides:
      initialize in class SmartTileEntity
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Specified by:
      getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeBlockEntity
    • tick

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

      public void blockBelowChanged()
    • canAcceptItem

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

      protected int getExtractionAmount()
    • getExtractionMode

      protected ItemHelper.ExtractionCountMode getExtractionMode()
    • canCollectItemsFromBelow

      protected boolean canCollectItemsFromBelow()
    • setItem

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

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

      public void setRemoved()
      Overrides:
      setRemoved in class SmartTileEntity
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartTileEntity
    • fromTag

      protected void fromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      fromTag in class SmartTileEntity
    • getItemMotion

      public float getItemMotion()
    • onRemoved

      public void onRemoved(net.minecraft.world.level.block.state.BlockState chuteState)
    • 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 TileEntity that implemented 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
    • getCapability

      public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable net.minecraft.core.Direction side)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider
      Overrides:
      getCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
    • getItem

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