Class ChainGearshiftBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
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

public class ChainGearshiftBlockEntity extends KineticBlockEntity
  • Constructor Details

    • ChainGearshiftBlockEntity

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

    • 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
    • getModifier

      public float getModifier()
    • neighbourChanged

      public void neighbourChanged()
    • lazyTick

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

      public void tick()
      Overrides:
      tick in class KineticBlockEntity
    • analogSignalChanged

      protected void analogSignalChanged(int newSignal)
    • getModifierForSignal

      protected float getModifierForSignal(int newPower)