public class PistonExtensionMaterial extends MaterialData implements Attachable
コンストラクタと説明 |
---|
PistonExtensionMaterial(int type)
非推奨です。
Magic value
|
PistonExtensionMaterial(int type,
byte data)
非推奨です。
Magic value
|
PistonExtensionMaterial(Material type) |
PistonExtensionMaterial(Material type,
byte data)
非推奨です。
Magic value
|
修飾子とタイプ | メソッドと説明 |
---|---|
PistonExtensionMaterial |
clone() |
BlockFace |
getAttachedFace()
Gets the face that this block is attached on
|
BlockFace |
getFacing()
Gets the direction this block is facing
|
boolean |
isSticky()
Checks if this piston extension is sticky, and returns true if so
|
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in
|
void |
setSticky(boolean sticky)
Sets whether or not this extension is sticky
|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString
@Deprecated public PistonExtensionMaterial(int type)
type
- the raw type idpublic PistonExtensionMaterial(Material type)
@Deprecated public PistonExtensionMaterial(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public PistonExtensionMaterial(Material type, byte data)
type
- the typedata
- the raw data valuepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection
インタフェース内 Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
インタフェース内 Directional
public boolean isSticky()
public void setSticky(boolean sticky)
sticky
- true if sticky, otherwise falsepublic BlockFace getAttachedFace()
Attachable
getAttachedFace
インタフェース内 Attachable
public PistonExtensionMaterial clone()
clone
クラス内 MaterialData
Copyright © 2016. All rights reserved.