public interface MultipleFacing extends BlockData
getAllowedFaces()
to get all possible faces for this block. It is
not valid to call any methods on non-allowed faces.Modifier and Type | Method and Description |
---|---|
@NotNull Set<BlockFace> |
getAllowedFaces()
Gets all of this faces which may be set on this block.
|
@NotNull Set<BlockFace> |
getFaces()
Get all of the faces which are enabled on this block.
|
boolean |
hasFace(@NotNull BlockFace face)
Checks if this block has the specified face enabled.
|
void |
setFace(@NotNull BlockFace face,
boolean has)
Set whether this block has the specified face enabled.
|
clone, getAsString, getAsString, getMaterial, getSoundGroup, matches, merge
boolean hasFace(@NotNull @NotNull BlockFace face)
face
- to checkvoid setFace(@NotNull @NotNull BlockFace face, boolean has)
face
- to sethas
- the face@NotNull @NotNull Set<BlockFace> getFaces()
Copyright © 2021. All rights reserved.