CauldronBlock
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.
import crafttweaker.api.block.type.cauldron.CauldronBlock;
Extends
CauldronBlock extends AbstractCauldronBlock
.
Implements
CauldronBlock
implements the following interfaces:
Undocumented Interfaces
IBlockExtension
,FeatureElement
Operators
CTBlockIngredient
.myCauldronBlock | myCTBlockIngredient
Parameters:
Return Type:
BlockIngredient
Members
CTBlockIngredient
representation of this Block.// CauldronBlock as BlockIngredientmyCauldronBlock as CTBlockIngredient
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.
myCauldronBlock.asItem();
Return Type:
ItemDefinition
***NOTE:*** Not all Blocks have Items, for instance, a Lit Redstone Lamp does not have an Item.
// CauldronBlock as ItemDefinitionmyCauldronBlock as Item
Return Type:
ItemDefinition
// CauldronBlock as ItemDefinitionmyCauldronBlock as Item
Return Type:
ItemDefinition
E.G.
<block:minecraft:dirt>
// CauldronBlock.commandString as stringmyCauldronBlock.commandString
Return Type:
string
E.G.
<block:minecraft:dirt>
Returns: The block bracket handler syntax for this Block.
// CauldronBlock.commandString() as string;myCauldronBlock.commandString();
Return Type:
string
E.G.
<block:minecraft:dirt>
// CauldronBlock as stringmyCauldronBlock as string
Return Type:
string
BlockState
of this Block.// CauldronBlock.defaultState as BlockStatemyCauldronBlock.defaultState
Return Type:
BlockState
BlockState
of this Block.Returns: The default BlockState
of this Block.
myCauldronBlock.defaultState();
Return Type:
BlockState
// CauldronBlock.descriptionId as stringmyCauldronBlock.descriptionId
Return Type:
string
Returns: The unlocalized name of this block.
// CauldronBlock.descriptionId() as string;myCauldronBlock.descriptionId();
Return Type:
string
// CauldronBlock.dynamicShape as boolmyCauldronBlock.dynamicShape
Return Type:
bool
Returns: True if this Block has variable opacity. False otherwise.
// CauldronBlock.dynamicShape() as bool;myCauldronBlock.dynamicShape();
Return Type:
bool
// CauldronBlock.explosionResistance as floatmyCauldronBlock.explosionResistance
Return Type:
float
// CauldronBlock.explosionResistance = (resistance as float);myCauldronBlock.explosionResistance = myFloat;
Parameters:
resistance: float
Type: float
- The new blast resistance of this Block. Returns: The blast resistance of this Block.
// CauldronBlock.explosionResistance() as float;myCauldronBlock.explosionResistance();
Return Type:
float
// CauldronBlock.explosionResistance(resistance as float);myCauldronBlock.explosionResistance(2);
Parameters:
resistance: float
Type: float
- The new blast resistance of this Block. // CauldronBlock.friction as floatmyCauldronBlock.friction
Return Type:
float
// CauldronBlock.friction = (friction as float);myCauldronBlock.friction = myFloat;
Parameters:
friction: float
Type: float
- The new friction of this Block. Returns: The friction of this Block.
// CauldronBlock.friction() as float;myCauldronBlock.friction();
Return Type:
float
// CauldronBlock.friction(friction as float);myCauldronBlock.friction(2);
Parameters:
friction: float
Type: float
- The new friction of this Block. // CauldronBlock.hasCollision as boolmyCauldronBlock.hasCollision
Return Type:
bool
// CauldronBlock.hasCollision = (canCollide as bool);myCauldronBlock.hasCollision = myBool;
Parameters:
canCollide: bool
Type: bool
- Can entities collide with this Block. Returns: True if entities will collide with this Block. False otherwise.
// CauldronBlock.hasCollision() as bool;myCauldronBlock.hasCollision();
Return Type:
bool
// CauldronBlock.hasCollision(canCollide as bool);myCauldronBlock.hasCollision(true);
Parameters:
canCollide: bool
Type: bool
- Can entities collide with this Block. Returns: True if full, false otherwise.
myCauldronBlock.isFull(<blockstate:minecraft:cauldron:level=3>);
Parameters:
Return Type:
bool
This is used to find valid spawn locations for players.
Returns: True if an entity can be spawned in this Block. False Otherwise.
myCauldronBlock.isPossibleToRespawnInThis(myBlockState);
Parameters:
state: BlockState
Type: BlockState
Return Type:
bool
// CauldronBlock.jumpFactor as floatmyCauldronBlock.jumpFactor
Return Type:
float
// CauldronBlock.jumpFactor = (jumpFactor as float);myCauldronBlock.jumpFactor = myFloat;
Parameters:
jumpFactor: float
Type: float
- The new jump factor of this Block. Returns: The jump factor of this Block.
// CauldronBlock.jumpFactor() as float;myCauldronBlock.jumpFactor();
Return Type:
float
// CauldronBlock.jumpFactor(jumpFactor as float);myCauldronBlock.jumpFactor(2);
Parameters:
jumpFactor: float
Type: float
- The new jump factor of this Block. // CauldronBlock.lootTable as stringmyCauldronBlock.lootTable
Return Type:
string
Returns: The loot table id for this Block.
// CauldronBlock.lootTable() as string;myCauldronBlock.lootTable();
Return Type:
string
Returns: True if this Block matches the other Block. False otherwise.
myCauldronBlock.matches(myBlock);
Return Type:
bool
// CauldronBlock.name as MutableComponentmyCauldronBlock.name
Return Type:
MutableComponent
Returns: The name of this block.
myCauldronBlock.name();
Return Type:
MutableComponent
BlockState
s for this Block.myCauldronBlock.possibleStates
Return Type:
List<BlockState>
BlockState
s for this Block.Returns: A list of valid BlockState
s for this Block.
myCauldronBlock.possibleStates();
Return Type:
List<BlockState>
// CauldronBlock.registryName as ResourceLocationmyCauldronBlock.registryName
Return Type:
ResourceLocation
Returns: A ResourceLocation of the registry name of this block.
myCauldronBlock.registryName();
Return Type:
ResourceLocation
// CauldronBlock.speedFactor as floatmyCauldronBlock.speedFactor
Return Type:
float
// CauldronBlock.speedFactor = (speedFactor as float);myCauldronBlock.speedFactor = myFloat;
Parameters:
speedFactor: float
Type: float
- The new speed factor of this Block. Returns: The speed factor of this Block.
// CauldronBlock.speedFactor() as float;myCauldronBlock.speedFactor();
Return Type:
float
// CauldronBlock.speedFactor(speedFactor as float);myCauldronBlock.speedFactor(2);
Parameters:
speedFactor: float
Type: float
- The new speed factor of this Block.