Block
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
Block extends BlockBehaviour
.
Implements
Block
implements the following interfaces:
Undocumented Interfaces
IBlockExtension
,FeatureElement
Operators
Parameters:
other: BlockIngredient
Type: BlockIngredient
Return Type:
BlockIngredient
Members
Return Type:
BlockIngredient
***NOTE:*** Not all Blocks have Items, for instance, a Lit Redstone Lamp does not have an Item.
Returns: The Item representation of this Block.
Return Type:
ItemDefinition
***NOTE:*** Not all Blocks have Items, for instance, a Lit Redstone Lamp does not have an Item.
Return Type:
ItemDefinition
E.G.
<block:minecraft:dirt>
Return Type:
string
E.G.
<block:minecraft:dirt>
Returns: The block bracket handler syntax for this Block.
Return Type:
string
E.G.
<block:minecraft:dirt>
Return Type:
string
BlockState
of this Block.Returns: The default BlockState
of this Block.
Return Type:
BlockState
Return Type:
string
Returns: The unlocalized name of this block.
Return Type:
string
Return Type:
bool
Returns: True if this Block has variable opacity. False otherwise.
Return Type:
bool
Return Type:
float
Parameters:
resistance: float
Type: float
- The new blast resistance of this Block. Returns: The blast resistance of this Block.
Return Type:
float
Parameters:
resistance: float
Type: float
- The new blast resistance of this Block.
Return Type:
float
Parameters:
friction: float
Type: float
- The new friction of this Block. Returns: The friction of this Block.
Return Type:
float
Parameters:
friction: float
Type: float
- The new friction of this Block.
Return Type:
bool
Parameters:
canCollide: bool
Type: bool
- Can entities collide with this Block. Returns: True if entities will collide with this Block. False otherwise.
Return Type:
bool
Parameters:
canCollide: bool
Type: bool
- Can entities collide with this Block. This is used to find valid spawn locations for players.
Returns: True if an entity can be spawned in this Block. False Otherwise.
Parameters:
state: BlockState
Type: BlockState
Return Type:
bool
Return Type:
float
Parameters:
jumpFactor: float
Type: float
- The new jump factor of this Block. Returns: The jump factor of this Block.
Return Type:
float
Parameters:
jumpFactor: float
Type: float
- The new jump factor of this Block.
Return Type:
string
Returns: The loot table id for this Block.
Return Type:
string
Return Type:
MutableComponent
BlockState
s for this Block.Returns: A list of valid BlockState
s for this Block.
Return Type:
List<BlockState>
Return Type:
ResourceLocation
Returns: A ResourceLocation of the registry name of this block.
Return Type:
ResourceLocation
Return Type:
float
Parameters:
speedFactor: float
Type: float
- The new speed factor of this Block. Returns: The speed factor of this Block.
Return Type:
float
Parameters:
speedFactor: float
Type: float
- The new speed factor of this Block.