Class GantryShaftTileEntity

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.backend.instancing.IInstanceRendered, 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 GantryShaftTileEntity extends KineticTileEntity
  • Constructor Details

    • GantryShaftTileEntity

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

    • checkAttachedCarriageBlocks

      public void checkAttachedCarriageBlocks()
    • onSpeedChanged

      public void onSpeedChanged(float previousSpeed)
      Overrides:
      onSpeedChanged 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)
    • isCustomConnection

      public boolean isCustomConnection(KineticTileEntity other, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState otherState)
      Description copied from class: KineticTileEntity
      Specify whether this component can propagate speed to the other in any circumstance. Shaft and cogwheel connections are already handled by internal logic. Does not have to be specified on both ends, it is assumed that this relation is symmetrical.
      Overrides:
      isCustomConnection in class KineticTileEntity
      Returns:
      true if this and the other component should check their propagation factor and are not already connected via integrated cogs or shafts
    • canAssembleOn

      public boolean canAssembleOn()
    • getPinionMovementSpeed

      public float getPinionMovementSpeed()
    • isNoisy

      protected boolean isNoisy()
      Overrides:
      isNoisy in class KineticTileEntity