Package org.bukkit.material
Class Torch
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Torch
- All Implemented Interfaces:
java.lang.Cloneable
,Attachable
,Directional
- Direct Known Subclasses:
RedstoneTorch
public class Torch extends SimpleAttachableMaterialData
MaterialData for torches
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Torch
clone()
BlockFace
getAttachedFace()
Gets the face that this block is attached onvoid
setFacingDirection(BlockFace face)
Sets the direction that this block is facing inMethods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Torch
public Torch() -
Torch
@Deprecated public Torch(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Torch
-
Torch
@Deprecated public Torch(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Torch
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getAttachedFace
Gets the face that this block is attached on- Returns:
- BlockFace attached to
-
setFacingDirection
Description copied from interface:Directional
Sets the direction that this block is facing in- Parameters:
face
- The facing direction
-
clone
- Overrides:
clone
in classSimpleAttachableMaterialData
-