Class SawBlockEntity

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

@ParametersAreNonnullByDefault public class SawBlockEntity extends BlockBreakingKineticBlockEntity implements net.minecraft.world.Clearable
  • Field Details

    • woodcuttingRecipeType

      public static final Supplier<net.minecraft.world.item.crafting.RecipeType<?>> woodcuttingRecipeType
    • inventory

      public ProcessingInventory inventory
  • Constructor Details

    • SawBlockEntity

      public SawBlockEntity(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 KineticBlockEntity
    • 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 BlockBreakingKineticBlockEntity
    • 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 BlockBreakingKineticBlockEntity
    • createRenderBoundingBox

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

      public void tickAudio()
      Overrides:
      tickAudio in class KineticBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class BlockBreakingKineticBlockEntity
    • invalidate

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

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • destroy

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

      protected void spawnEventParticles(net.minecraft.world.item.ItemStack stack)
    • spawnParticles

      protected void spawnParticles(net.minecraft.world.item.ItemStack stack)
    • getItemMovementVec

      public net.minecraft.world.phys.Vec3 getItemMovementVec()
    • insertItem

      public void insertItem(net.minecraft.world.entity.item.ItemEntity entity)
    • start

      public void start(net.minecraft.world.item.ItemStack inserted)
    • canProcess

      protected boolean canProcess()
    • shouldRun

      protected boolean shouldRun()
      Overrides:
      shouldRun in class BlockBreakingKineticBlockEntity
    • getBreakingPos

      protected net.minecraft.core.BlockPos getBreakingPos()
      Specified by:
      getBreakingPos in class BlockBreakingKineticBlockEntity
    • onBlockBroken

      public void onBlockBroken(net.minecraft.world.level.block.state.BlockState stateToBreak)
      Overrides:
      onBlockBroken in class BlockBreakingKineticBlockEntity
    • dropItemFromCutTree

      public void dropItemFromCutTree(net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack)
    • canBreak

      public boolean canBreak(net.minecraft.world.level.block.state.BlockState stateToBreak, float blockHardness)
      Overrides:
      canBreak in class BlockBreakingKineticBlockEntity
    • isSawable

      public static boolean isSawable(net.minecraft.world.level.block.state.BlockState stateToBreak)