Class PoweredShaftTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
All Implemented Interfaces:
IHaveGoggleInformation, IHaveHoveringInformation, ISpecialBlockEntityItemRequirement, 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 PoweredShaftTileEntity extends GeneratingKineticTileEntity
  • Field Details

    • enginePos

      public net.minecraft.core.BlockPos enginePos
    • engineEfficiency

      public float engineEfficiency
    • movementDirection

      public int movementDirection
    • initialTicks

      public int initialTicks
    • capacityKey

      public net.minecraft.world.level.block.Block capacityKey
  • Constructor Details

    • PoweredShaftTileEntity

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

    • tick

      public void tick()
      Overrides:
      tick in class GeneratingKineticTileEntity
    • update

      public void update(net.minecraft.core.BlockPos sourcePos, int direction, float efficiency)
    • remove

      public void remove(net.minecraft.core.BlockPos sourcePos)
    • canBePoweredBy

      public boolean canBePoweredBy(net.minecraft.core.BlockPos globalPos)
    • isPoweredBy

      public boolean isPoweredBy(net.minecraft.core.BlockPos globalPos)
    • 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
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticTileEntity
    • getGeneratedSpeed

      public float getGeneratedSpeed()
      Overrides:
      getGeneratedSpeed in class KineticTileEntity
    • calculateAddedStressCapacity

      public float calculateAddedStressCapacity()
      Overrides:
      calculateAddedStressCapacity in class KineticTileEntity
    • getRotationAngleOffset

      public int getRotationAngleOffset(net.minecraft.core.Direction.Axis axis)
      Overrides:
      getRotationAngleOffset in class KineticTileEntity
    • addToGoggleTooltip

      public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Description copied from interface: IHaveGoggleInformation
      this method will be called when looking at a TileEntity that implemented this interface
      Specified by:
      addToGoggleTooltip in interface IHaveGoggleInformation
      Overrides:
      addToGoggleTooltip in class GeneratingKineticTileEntity
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed
    • addToEngineTooltip

      public boolean addToEngineTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)