类 PistonExtensionMaterial
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PistonExtensionMaterial
- 所有已实现的接口:
Cloneable,Attachable,Directional
@Deprecated(since="1.14.1")
public class PistonExtensionMaterial
extends MaterialData
implements Attachable
已过时。
活塞延伸方块的材质数据
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此方块附着的面.已过时。获取此方块的朝向.booleanisSticky()已过时。检查此活塞延伸是否为粘性活塞,如果是则返回truevoidsetFacingDirection(BlockFace face) 已过时。设置此方块的朝向.voidsetSticky(boolean sticky) 已过时。设置此延伸是否为粘性从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack, toString
-
构造器详细资料
-
PistonExtensionMaterial
已过时。 -
PistonExtensionMaterial
已过时。魔法值- 参数:
type- 类型data- 原始数据值
-
-
方法详细资料
-
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()已过时。检查此活塞延伸是否为粘性活塞,如果是则返回true- 返回:
- 如果此活塞是"粘性"的则返回true,否则返回false
原文:Checks if this piston extension is sticky, and returns true if so
-
setSticky
public void setSticky(boolean sticky) 已过时。设置此延伸是否为粘性- 参数:
sticky- 如果是粘性则为true,否则为false原文:Sets whether or not this extension is sticky
-
getAttachedFace
已过时。从接口复制的说明:Attachable获取此方块附着的面.原文: Gets the face that this block is attached on
- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 附着的面
-
clone
已过时。- 覆盖:
clone在类中MaterialData
-
BlockData。