Class HandCrankBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Direct Known Subclasses:
ValveHandleBlockEntity

public class HandCrankBlockEntity extends GeneratingKineticBlockEntity
  • Field Details

    • inUse

      public int inUse
    • backwards

      public boolean backwards
    • independentAngle

      public float independentAngle
    • chasingVelocity

      public float chasingVelocity
  • Constructor Details

    • HandCrankBlockEntity

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

    • turn

      public void turn(boolean back)
    • getIndependentAngle

      public float getIndependentAngle(float partialTicks)
    • getGeneratedSpeed

      public float getGeneratedSpeed()
      Overrides:
      getGeneratedSpeed in class KineticBlockEntity
    • clockwise

      protected boolean clockwise()
    • write

      public 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
    • tick

      public void tick()
      Overrides:
      tick in class GeneratingKineticBlockEntity
    • getRenderedHandle

      public net.createmod.catnip.render.SuperByteBuffer getRenderedHandle()
    • shouldRenderShaft

      public boolean shouldRenderShaft()
    • getStressConfigKey

      protected net.minecraft.world.level.block.Block getStressConfigKey()
      Overrides:
      getStressConfigKey in class KineticBlockEntity
    • tickAudio

      public void tickAudio()
      Overrides:
      tickAudio in class KineticBlockEntity