Class GantryContraption


public class GantryContraption extends TranslatingContraption
  • Field Details

    • facing

      protected net.minecraft.core.Direction facing
  • Constructor Details

    • GantryContraption

      public GantryContraption()
    • GantryContraption

      public GantryContraption(net.minecraft.core.Direction facing)
  • Method Details

    • 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
    • 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 tag, boolean spawnData)
      Overrides:
      readNBT in class Contraption
    • isAnchoringBlockAt

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

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

      public net.minecraft.core.Direction getFacing()
    • shouldUpdateAfterMovement

      protected boolean shouldUpdateAfterMovement(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo info)
      Overrides:
      shouldUpdateAfterMovement in class Contraption