Class AirGrateModule

java.lang.Object
me.desht.pneumaticcraft.common.tubemodules.AbstractTubeModule
me.desht.pneumaticcraft.common.tubemodules.AirGrateModule

public class AirGrateModule extends AbstractTubeModule
  • Constructor Details

  • Method Details

    • getWidth

      public double getWidth()
      Description copied from class: AbstractTubeModule
      Get the module's width (in range 0..16 as passed to Block.box(double, double, double, double, double, double)
      Overrides:
      getWidth in class AbstractTubeModule
      Returns:
      the width
    • getItem

      public net.minecraft.world.item.Item getItem()
      Specified by:
      getItem in class AbstractTubeModule
    • tickCommon

      public void tickCommon()
      Overrides:
      tickCommon in class AbstractTubeModule
    • tickServer

      public void tickServer()
      Overrides:
      tickServer in class AbstractTubeModule
    • onNeighborBlockUpdate

      public void onNeighborBlockUpdate()
      Overrides:
      onNeighborBlockUpdate in class AbstractTubeModule
    • readFromNBT

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

      public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      writeToNBT in class AbstractTubeModule
    • addInfo

      public void addInfo(List<net.minecraft.network.chat.Component> curInfo)
      Overrides:
      addInfo in class AbstractTubeModule
    • hasGui

      public boolean hasGui()
      Description copied from class: AbstractTubeModule
      Does this module have a gui? Server also needs to know about this, since module GUI's are opened in response to a packet from the server.
      Overrides:
      hasGui in class AbstractTubeModule
      Returns:
      true if the module has a gui
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Overrides:
      getRenderBoundingBox in class AbstractTubeModule
    • getEntityFilter

      @Nonnull public EntityFilter getEntityFilter()
    • setEntityFilter

      public void setEntityFilter(@Nonnull EntityFilter filter)
    • isShowRange

      public boolean isShowRange()
    • setShowRange

      public void setShowRange(boolean showRange)
    • onRemoved

      public void onRemoved()
      Description copied from class: AbstractTubeModule
      Called just before a module is removed from a pressure tube, either by a player wrenching it, or when data that is read from NBT causes the module to be removed.
      Overrides:
      onRemoved in class AbstractTubeModule