Class MechanicalCrafterBlockEntity

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

public class MechanicalCrafterBlockEntity extends KineticBlockEntity
  • Field Details

  • Constructor Details

    • MechanicalCrafterBlockEntity

      public MechanicalCrafterBlockEntity(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)
    • getInvCapability

      protected net.neoforged.neoforge.items.IItemHandler getInvCapability()
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticBlockEntity
    • onSpeedChanged

      public void onSpeedChanged(float previousSpeed)
      Overrides:
      onSpeedChanged in class KineticBlockEntity
    • blockChanged

      public void blockChanged()
    • getTargetFace

      public net.createmod.catnip.math.BlockFace getTargetFace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • getTargetDirection

      public net.minecraft.core.Direction getTargetDirection()
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: PartialSafeNBT
      This will always be called from the logical server
      Specified by:
      writeSafe in interface PartialSafeNBT
      Overrides:
      writeSafe 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 KineticBlockEntity
    • 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 KineticBlockEntity
    • invalidate

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

      public int getCountDownSpeed()
    • tick

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

      protected boolean isTargetingBelt()
    • getTargetingBelt

      protected DirectBeltInputBehaviour getTargetingBelt()
    • tryInsert

      public void tryInsert()
    • ejectWholeGrid

      public void ejectWholeGrid()
    • eject

      public void eject()
    • dropItem

      public void dropItem(net.minecraft.world.phys.Vec3 ejectPos, net.minecraft.world.item.ItemStack stack)
    • lazyTick

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

      public boolean craftingItemPresent()
    • craftingItemOrCoverPresent

      public boolean craftingItemOrCoverPresent()
    • checkCompletedRecipe

      public void checkCompletedRecipe(boolean poweredStart)
    • begin

      protected void begin()
    • continueIfAllPrecedingFinished

      protected void continueIfAllPrecedingFinished()
    • connectivityChanged

      public void connectivityChanged()
    • getInventory

    • setScriptedResult

      public void setScriptedResult(net.minecraft.world.item.ItemStack scriptedResult)