| Modifier and Type | Method and Description |
|---|---|
Collection<Direction> |
getFacesWithProperty(int x,
int y,
int z,
Class<? extends Property<?,?>> propertyClass)
Gets all the faces of this block that have the given property.
|
default Collection<Direction> |
getFacesWithProperty(com.flowpowered.math.vector.Vector3i coords,
Class<? extends Property<?,?>> propertyClass)
Gets all the faces of this block that have the given property.
|
Collection<Property<?,?>> |
getProperties(int x,
int y,
int z)
Gets an immutable collection of all known
Propertys pertaining to
this PropertyHolder. |
default Collection<Property<?,?>> |
getProperties(com.flowpowered.math.vector.Vector3i coords)
Gets an immutable collection of all known
Propertys pertaining to
this PropertyHolder. |
<T extends Property<?,?>> |
getProperty(int x,
int y,
int z,
Class<T> propertyClass)
Attempts to retrieve a specific
Property type of this
PropertyHolder. |
<T extends Property<?,?>> |
getProperty(int x,
int y,
int z,
Direction direction,
Class<T> propertyClass)
Attempts to retrieve a specific
Property type of the block at the
specific location on the given block face. |
default <T extends Property<?,?>> |
getProperty(com.flowpowered.math.vector.Vector3i coords,
Class<T> propertyClass)
Attempts to retrieve a specific
Property type of the block at the
specific location. |
default <T extends Property<?,?>> |
getProperty(com.flowpowered.math.vector.Vector3i coords,
Direction direction,
Class<T> propertyClass)
Attempts to retrieve a specific
Property type of the block at the
specific location on the given block face. |
default <T extends Property<?,?>> Optional<T> getProperty(com.flowpowered.math.vector.Vector3i coords, Class<T> propertyClass)
Property type of the block at the
specific location. If the property is not applicable,
Optional.empty() is returned.
properties can define various immutable information
about a PropertyHolder that is dependent on the instance of the
holder. As properties cannot be changed, the
PropertyHolder can not change the information about its own
properties either.
T - The type of propertycoords - The coordinatespropertyClass - The property class<T extends Property<?,?>> Optional<T> getProperty(int x, int y, int z, Class<T> propertyClass)
Property type of this
PropertyHolder. If the property is not applicable,
Optional.empty() is returned.
properties can define various immutable information
about a PropertyHolder that is dependent on the instance of the
holder. As properties cannot be changed, the
PropertyHolder can not change the information about it's own
properties either.
T - The type of propertyx - The x coordinatey - The y coordinatez - The z coordinatepropertyClass - The property classdefault <T extends Property<?,?>> Optional<T> getProperty(com.flowpowered.math.vector.Vector3i coords, Direction direction, Class<T> propertyClass)
Property type of the block at the
specific location on the given block face. If the property is not
applicable, Optional.empty() is returned.
properties can define various immutable information
about a PropertyHolder that is dependent on the instance of the
holder. As properties cannot be changed, the
PropertyHolder can not change the information about it's own
properties either.
T - The type of propertycoords - The coordinatesdirection - The face of the blockpropertyClass - The property class<T extends Property<?,?>> Optional<T> getProperty(int x, int y, int z, Direction direction, Class<T> propertyClass)
Property type of the block at the
specific location on the given block face. If the property is not
applicable, Optional.empty() is returned.
properties can define various immutable information
about a PropertyHolder that is dependent on the instance of the
holder. As properties cannot be changed, the
PropertyHolder can not change the information about it's own
properties either.
T - The type of propertyx - The x coordinatey - The y coordinatez - The z coordinatedirection - The face of the blockpropertyClass - The property classdefault Collection<Property<?,?>> getProperties(com.flowpowered.math.vector.Vector3i coords)
Propertys pertaining to
this PropertyHolder.
properties can not be changed such that the property
is attached to the instance of the residing PropertyHolder.
coords - The coordinatespropertiesCollection<Property<?,?>> getProperties(int x, int y, int z)
Propertys pertaining to
this PropertyHolder.
properties can not be changed such that the property
is attached to the instance of the residing PropertyHolder.
x - The x coordinatey - The y coordinatez - The z coordinatePropertysdefault Collection<Direction> getFacesWithProperty(com.flowpowered.math.vector.Vector3i coords, Class<? extends Property<?,?>> propertyClass)
coords - The coordinatespropertyClass - The property classCollection<Direction> getFacesWithProperty(int x, int y, int z, Class<? extends Property<?,?>> propertyClass)
x - The x coordinatey - The y coordinatez - The z coordinatepropertyClass - The property class