Class HackableTrapDoor
java.lang.Object
me.desht.pneumaticcraft.common.hacking.block.HackableDoor
me.desht.pneumaticcraft.common.hacking.block.HackableTrapDoor
- All Implemented Interfaces:
IHackableBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationGet a unique id to represent this hackable.protected net.minecraft.world.level.block.state.properties.BooleanPropertyMethods inherited from class me.desht.pneumaticcraft.common.hacking.block.HackableDoor
addInfo, addPostHackInfo, canHack, getHackTime, onHackCompleteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.pneumatic_armor.hacking.IHackableBlock
afterHackTick, fakeRayTrace
-
Constructor Details
-
HackableTrapDoor
public HackableTrapDoor()
-
-
Method Details
-
getHackableId
public net.minecraft.resources.ResourceLocation getHackableId()Description copied from interface:IHackableBlockGet a unique id to represent this hackable. Used in NBT saving to be able to trigger the afterHackTime after a server restart.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).
- Specified by:
getHackableIdin interfaceIHackableBlock- Overrides:
getHackableIdin classHackableDoor- Returns:
- a unique ID for this hack type
-
getOpenProperty
protected net.minecraft.world.level.block.state.properties.BooleanProperty getOpenProperty()- Overrides:
getOpenPropertyin classHackableDoor
-