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.14.1")
public class TripwireHook
extends SimpleAttachableMaterialData
implements Redstone
Deprecated.
Represents the tripwire hook
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.TripwireHook(BlockFace dir) Deprecated.TripwireHook(Material type, byte data) Deprecated.Magic value
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the face that this block is attached onbooleanDeprecated.Test if hook is currently activatedbooleanDeprecated.Test if tripwire is connectedbooleanDeprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetActivated(boolean act) Deprecated.Set hook activated statevoidsetConnected(boolean connected) Deprecated.Set tripwire connection statevoidsetFacingDirection(BlockFace face) Deprecated.Sets the direction that this block is facing intoString()Deprecated.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialDatagetFacingMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
TripwireHookpublic TripwireHook()Deprecated.
- 
TripwireHookDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
- 
TripwireHookDeprecated.
 
- 
- 
Method Details- 
isConnectedpublic boolean isConnected()Deprecated.Test if tripwire is connected- Returns:
- true if connected, false if not
 
- 
setConnectedpublic void setConnected(boolean connected) Deprecated.Set tripwire connection state- Parameters:
- connected- - true if connected, false if not
 
- 
isActivatedpublic boolean isActivated()Deprecated.Test if hook is currently activated- Returns:
- true if activated, false if not
 
- 
setActivatedpublic void setActivated(boolean act) Deprecated.Set hook activated state- Parameters:
- act- - true if activated, false if not
 
- 
setFacingDirectionDeprecated.Description copied from interface:DirectionalSets the direction that this block is facing in- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The facing direction
 
- 
getAttachedFaceDeprecated.Description copied from interface:AttachableGets the face that this block is attached on- Specified by:
- getAttachedFacein interface- Attachable
- Returns:
- BlockFace attached to
 
- 
isPoweredpublic boolean isPowered()Deprecated.Description copied from interface:RedstoneGets the current state of this Material, indicating if it's powered or unpowered
- 
cloneDeprecated.- Overrides:
- clonein class- SimpleAttachableMaterialData
 
- 
toStringDeprecated.- Overrides:
- toStringin class- SimpleAttachableMaterialData
 
 
- 
BlockData.