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:
com.jozufozu.flywheel.api.FlywheelRendered, IControlContraption, IDisplayAssemblyExceptions, IHaveGoggleInformation, IHaveHoveringInformation, 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:
MechanicalPistonTileEntity, PulleyTileEntity

public abstract class LinearActuatorTileEntity extends KineticTileEntity implements IControlContraption, IDisplayAssemblyExceptions
  • Field Details

    • offset

      public float offset
    • running

      public boolean running
    • assembleNextTick

      public boolean assembleNextTick
    • needsContraption

      public boolean needsContraption
    • movedContraption

      public AbstractContraptionEntity movedContraption
    • forceMove

      protected boolean forceMove
    • movementMode

    • waitingForSpeedChange

      protected boolean waitingForSpeedChange
    • lastException

      protected AssemblyException lastException
    • clientOffsetDiff

      protected float clientOffsetDiff
  • Constructor Details

    • LinearActuatorTileEntity

      public LinearActuatorTileEntity(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<TileEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticTileEntity
    • tick

      public void tick()
      Overrides:
      tick in class KineticTileEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartTileEntity
    • getGridOffset

      protected int getGridOffset(float offset)
    • getInterpolatedOffset

      public float getInterpolatedOffset(float partialTicks)
    • onSpeedChanged

      public void onSpeedChanged(float prevSpeed)
      Overrides:
      onSpeedChanged in class KineticTileEntity
    • setRemoved

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

      protected 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 KineticTileEntity
    • 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 KineticTileEntity
    • getLastAssemblyException

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

      public abstract void disassemble()
    • assemble

      protected abstract void assemble() throws AssemblyException
      Throws:
      AssemblyException
    • getExtensionRange

      protected abstract int getExtensionRange()
    • getInitialOffset

      protected abstract int getInitialOffset()
    • getMovementModeSlot

      protected abstract ValueBoxTransform getMovementModeSlot()
    • toMotionVector

      protected abstract net.minecraft.world.phys.Vec3 toMotionVector(float speed)
    • toPosition

      protected abstract net.minecraft.world.phys.Vec3 toPosition(float offset)
    • visitNewPosition

      protected void visitNewPosition()
    • tryDisassemble

      protected void tryDisassemble()
    • moveAndCollideContraption

      protected boolean moveAndCollideContraption()
    • collided

      protected void collided()
    • resetContraptionToOffset

      protected void resetContraptionToOffset()
    • getMovementSpeed

      public float getMovementSpeed()
    • getMotionVector

      public net.minecraft.world.phys.Vec3 getMotionVector()
    • onStall

      public void onStall()
      Specified by:
      onStall in interface IControlContraption
    • onLengthBroken

      public void onLengthBroken()
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface IControlContraption
    • attach

      public void attach(ControlledContraptionEntity contraption)
      Specified by:
      attach in interface IControlContraption
    • isAttachedTo

      public boolean isAttachedTo(AbstractContraptionEntity contraption)
      Specified by:
      isAttachedTo in interface IControlContraption
    • getBlockPosition

      public net.minecraft.core.BlockPos getBlockPosition()
      Specified by:
      getBlockPosition in interface IControlContraption