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, 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>

public class GantryCarriageTileEntity extends KineticTileEntity implements IDisplayAssemblyExceptions
  • Field Details

  • Constructor Details

    • GantryCarriageTileEntity

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

    • onSpeedChanged

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

      public void checkValidGantryShaft()
    • initialize

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

      public void queueAssembly()
    • tick

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

      public AssemblyException getLastAssemblyException()
      Specified by:
      getLastAssemblyException in interface IDisplayAssemblyExceptions
    • 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
    • propagateRotationTo

      public float propagateRotationTo(KineticTileEntity 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: KineticTileEntity
      Specify ratio of transferred rotation from this kinetic component to a specific other.
      Overrides:
      propagateRotationTo in class KineticTileEntity
      Parameters:
      target - other Kinetic TE to transfer to
      stateFrom - this TE's blockstate
      stateTo - other TE'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 TE 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)
    • shouldRenderNormally

      public boolean shouldRenderNormally()
      Specified by:
      shouldRenderNormally in interface com.jozufozu.flywheel.api.FlywheelRendered