Class PulleyContraption

Direct Known Subclasses:
ElevatorContraption

public class PulleyContraption extends TranslatingContraption
  • Constructor Details

    • PulleyContraption

      public PulleyContraption()
    • PulleyContraption

      public PulleyContraption(int initialOffset)
  • Method Details

    • getType

      public ContraptionType getType()
      Specified by:
      getType in class Contraption
    • assemble

      public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException
      Specified by:
      assemble in class Contraption
      Throws:
      AssemblyException
    • isAnchoringBlockAt

      protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos)
      Overrides:
      isAnchoringBlockAt in class Contraption
    • writeNBT

      public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeNBT in class Contraption
    • readNBT

      public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData)
      Overrides:
      readNBT in class Contraption
    • getInitialOffset

      public int getInitialOffset()