java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaTypeWall

public class AreaTypeWall extends AreaType
  • Field Details

  • Constructor Details

    • AreaTypeWall

      public AreaTypeWall()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addArea

      public void addArea(Consumer<net.minecraft.core.BlockPos> areaAdder, net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
      Description copied from class: AreaType
      Actually add the positions defined by this area to the given blockpos set
      Specified by:
      addArea in class AreaType
      Parameters:
      areaAdder - the adder; call adder.accept(pos) to add a blockpos
      p1 - the first raw blockpos of the area
      p2 - the second raw blockpos of the area
      minX - min X coord
      minY - min Y coord
      minZ - min Z coord
      maxX - max X coord
      maxY - max Y coord
      maxZ - max Z coord
    • addUIWidgets

      public void addUIWidgets(List<AreaType.AreaTypeWidget> widgets)
      Overrides:
      addUIWidgets in class AreaType
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      writeToNBT in class AreaType
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      readFromNBT in class AreaType
    • writeToPacket

      public void writeToPacket(net.minecraft.network.FriendlyByteBuf buffer)
      Overrides:
      writeToPacket in class AreaType
    • readFromPacket

      public void readFromPacket(net.minecraft.network.FriendlyByteBuf buf)
      Overrides:
      readFromPacket in class AreaType
    • convertFromLegacy

      public void convertFromLegacy(LegacyAreaWidgetConverter.EnumOldAreaType oldAreaType, int typeInfo)
      Description copied from class: AreaType
      Called when loading old-style programs from pastebin etc. Convert any old-fashioned area representations to their modern equivalents.
      Overrides:
      convertFromLegacy in class AreaType
      Parameters:
      oldAreaType - the old-style area type
      typeInfo - extra integer type information used by some types