Class GantryCarriageBlockEntity

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

public class GantryCarriageBlockEntity extends KineticBlockEntity implements IDisplayAssemblyExceptions
  • Field Details

  • Constructor Details

    • GantryCarriageBlockEntity

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

    • addBehaviours

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

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

      public void checkValidGantryShaft()
    • initialize

      public void initialize()
      Overrides:
      initialize in class KineticBlockEntity
    • queueAssembly

      public void queueAssembly()
    • tick

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

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

      protected 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
    • propagateRotationTo

      public float propagateRotationTo(KineticBlockEntity target, net.minecraft.world.level.block.state.BlockState stateFrom, net.minecraft.world.level.block.state.BlockState stateTo, net.minecraft.core.BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs)
      Description copied from class: KineticBlockEntity
      Specify ratio of transferred rotation from this kinetic component to a specific other.
      Overrides:
      propagateRotationTo in class KineticBlockEntity
      Parameters:
      target - other Kinetic BE to transfer to
      stateFrom - this BE's blockstate
      stateTo - other BE's blockstate
      diff - difference in position (to.pos - from.pos)
      connectedViaAxes - whether these kinetic blocks are connected via mutual IRotate.hasShaftTowards()
      connectedViaCogs - whether these kinetic blocks are connected via mutual IRotate.hasIntegratedCogwheel()
      Returns:
      factor of rotation speed from this BE to other. 0 if no rotation is transferred, or the standard rules apply (integrated shafts/cogs)
    • getGantryPinionModifier

      public static float getGantryPinionModifier(net.minecraft.core.Direction shaft, net.minecraft.core.Direction pinionDirection)