类 PistonExtensionMaterial
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PistonExtensionMaterial
- 所有已实现的接口:
Cloneable,Attachable,Directional
代表活塞臂
-
构造器概要
构造器构造器说明PistonExtensionMaterial(int type) 已过时。不安全的参数PistonExtensionMaterial(int type, byte data) 已过时。不安全的参数PistonExtensionMaterial(Material type, byte data) 已过时。不安全的参数 -
方法概要
修饰符和类型方法说明clone()获取这个方块附着的朝向.获取这个方块的朝向.booleanisSticky()检测这个活塞臂是否是粘性的.voidsetFacingDirection(BlockFace face) 设置这个方块的朝向.voidsetSticky(boolean sticky) 设置这个活塞臂是否是粘性的.从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString
-
构造器详细资料
-
PistonExtensionMaterial
已过时。不安全的参数- 参数:
type- the raw type id
-
PistonExtensionMaterial
-
PistonExtensionMaterial
已过时。不安全的参数- 参数:
type- the raw type iddata- the raw data value
-
PistonExtensionMaterial
已过时。不安全的参数- 参数:
type- the typedata- the raw data value
-
-
方法详细资料
-
setFacingDirection
从接口复制的说明:Directional设置这个方块的朝向.原文:Sets the direction that this block is facing in
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 这个方块的朝向
-
getFacing
从接口复制的说明:Directional获取这个方块的朝向.原文:Gets the direction this block is facing
- 指定者:
getFacing在接口中Directional- 返回:
- 这个方块的朝向
-
isSticky
public boolean isSticky()检测这个活塞臂是否是粘性的.原文:Checks if this piston extension is sticky, and returns true if so
- 返回:
- 这个活塞是否是粘性的
-
setSticky
public void setSticky(boolean sticky) 设置这个活塞臂是否是粘性的.原文:Sets whether or not this extension is sticky
- 参数:
sticky- 这个活塞是否是粘性的
-
getAttachedFace
从接口复制的说明:Attachable获取这个方块附着的朝向.原文: Gets the face that this block is attached on
- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 朝向
-
clone
- 覆盖:
clone在类中MaterialData
-