BlockState
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
Extends
BlockState extends BlockStateBase
.
Implements
Undocumented Interfaces
IBlockStateExtension
Operators
Parameters:
other: BlockIngredient
Type: BlockIngredient
Return Type:
BlockIngredient
Parameters:
other: BlockState
Type: BlockState
Return Type:
bool
Members
Return Type:
BlockIngredient
Return Type:
string
Return Type:
bool
Returns: True if this BlockState is solid. False otherwise.
Return Type:
bool
E.G.
<blockstate:minecraft:grass:snowy=true>
Return Type:
string
E.G.
<blockstate:minecraft:grass:snowy=true>
Returns: The blockstate bracket handler syntax for this BlockState.
Return Type:
string
E.G.
<blockstate:minecraft:grass:snowy=true>
Return Type:
string
Return Type:
float
Parameters:
destroySpeed: float
Type: float
- the new destroy speed of this BlockState Returns: The hardness of this BlockState.
Return Type:
float
Parameters:
destroySpeed: float
Type: float
- the new destroy speed of this BlockState Returns: a List of allowed values.
Parameters:
name: string
Type: string
- The name of the property to find the allowed values for.
Return Type:
List<string>
Returns: The value of the property on this BlockState.
Parameters:
name: string
Type: string
- "snowy"
Return Type:
string
net.minecraft.world.level.block.entity.BlockEntity
.
Return Type:
bool
net.minecraft.world.level.block.entity.BlockEntity
.Returns: True if this BlockState has a net.minecraft.world.level.block.entity.BlockEntity
. False otherwise.
Return Type:
bool
Returns: True if this BlockState has the property. False otherwise.
Parameters:
name: string
Type: string
- the name of the property to check.
Return Type:
bool
Return Type:
bool
Returns: True if this BlockState ticks randomly. False otherwise.
Return Type:
bool
Return Type:
bool
Returns: True if this BlockState can provide Redstone Power. False otherwise.
Return Type:
bool
Return Type:
int
Returns: The light level of this BlockState.
Return Type:
int
Parameters:
other: BlockState
Type: BlockState
Return Type:
bool
Return Type:
string[string]
Returns: a Map of the properties on this BlockState.
Return Type:
string[string]
Return Type:
List<string>
Returns: the List of the names of the BlockStates's properties.
Return Type:
List<string>
Return Type:
BlockState
Returns: This BlockState with the new property value.
Parameters:
name: string
Type: string
- The name of the property to set. value: string
Type: string
- The new value of the property.
Return Type:
BlockState