Class HackableTrapDoor

java.lang.Object
me.desht.pneumaticcraft.common.hacking.block.HackableDoor
me.desht.pneumaticcraft.common.hacking.block.HackableTrapDoor
All Implemented Interfaces:
IHackableBlock

public class HackableTrapDoor extends HackableDoor
  • Constructor Details

    • HackableTrapDoor

      public HackableTrapDoor()
  • Method Details

    • getHackableId

      public net.minecraft.resources.ResourceLocation getHackableId()
      Description copied from interface: IHackableBlock
      Get a unique id to represent this hackable. Used in NBT saving to be able to trigger the afterHackTime after a server restart. Null is a valid return: afterHackTick will not be triggered at all in that case.

      The returned ResourceLocation should be in the namespace of the mod which adds the hack (which is not necessarily the mod that adds the hackable block).

      CURRENTLY THIS ISN'T IMPLEMENTED.

      Specified by:
      getHackableId in interface IHackableBlock
      Overrides:
      getHackableId in class HackableDoor
      Returns:
      a unique ID for this hack type
    • getOpenProperty

      protected net.minecraft.world.level.block.state.properties.BooleanProperty getOpenProperty()
      Overrides:
      getOpenProperty in class HackableDoor