Class CartAssemblerBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IDisplayAssemblyExceptions, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class CartAssemblerBlockEntity extends SmartBlockEntity implements IDisplayAssemblyExceptions
  • Field Details

  • Constructor Details

    • CartAssemblerBlockEntity

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

    • tick

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

      public void tryAssemble(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • assemble

      protected void assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • disassemble

      protected void disassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • disassembleCart

      protected void disassembleCart(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours 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
    • getLastAssemblyException

      public AssemblyException getLastAssemblyException()
      Specified by:
      getLastAssemblyException in interface IDisplayAssemblyExceptions
    • getMovementModeSlot

      protected ValueBoxTransform getMovementModeSlot()
    • resetTicksSinceMinecartUpdate

      public void resetTicksSinceMinecartUpdate()
    • assembleNextTick

      public void assembleNextTick(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • isMinecartUpdateValid

      public boolean isMinecartUpdateValid()