Package org.bukkit.material
Class TripwireHook
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TripwireHook
- All Implemented Interfaces:
Cloneable
,Attachable
,Directional
,Redstone
@Deprecated(since="1.13",
forRemoval=true)
public class TripwireHook
extends SimpleAttachableMaterialData
implements Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the tripwire hook
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.TripwireHook
(BlockFace dir) Deprecated, for removal: This API element is subject to removal in a future version.TripwireHook
(Material type, byte data) Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the face that this block is attached onboolean
Deprecated, for removal: This API element is subject to removal in a future version.Test if hook is currently activatedboolean
Deprecated, for removal: This API element is subject to removal in a future version.Test if tripwire is connectedboolean
Deprecated, for removal: This API element is subject to removal in a future version.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setActivated
(boolean act) Deprecated, for removal: This API element is subject to removal in a future version.Set hook activated statevoid
setConnected
(boolean connected) Deprecated, for removal: This API element is subject to removal in a future version.Set tripwire connection statevoid
setFacingDirection
(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction that this block is facing intoString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
TripwireHook
public TripwireHook()Deprecated, for removal: This API element is subject to removal in a future version. -
TripwireHook
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
TripwireHook
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
isConnected
public boolean isConnected()Deprecated, for removal: This API element is subject to removal in a future version.Test if tripwire is connected- Returns:
- true if connected, false if not
-
setConnected
public void setConnected(boolean connected) Deprecated, for removal: This API element is subject to removal in a future version.Set tripwire connection state- Parameters:
connected
- - true if connected, false if not
-
isActivated
public boolean isActivated()Deprecated, for removal: This API element is subject to removal in a future version.Test if hook is currently activated- Returns:
- true if activated, false if not
-
setActivated
public void setActivated(boolean act) Deprecated, for removal: This API element is subject to removal in a future version.Set hook activated state- Parameters:
act
- - true if activated, false if not
-
setFacingDirection
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getAttachedFace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Attachable
Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
isPowered
public boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Redstone
Gets the current state of this Material, indicating if it's powered or unpowered -
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classSimpleAttachableMaterialData
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classSimpleAttachableMaterialData
-
BlockData
.