HomeCommandsExamplesGetting Started With ScriptsGlobal Keywords1.21 Migration Guide
BracketDumpersBracketHandlersBracketValidatorsResourceLocationBracketHandler

AbstractCauldronBlock

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.

script.zs
import crafttweaker.api.block.type.cauldron.AbstractCauldronBlock;

Extends

AbstractCauldronBlock extends Block.

Implements

AbstractCauldronBlock implements the following interfaces:

ItemLike

Undocumented Interfaces

IBlockExtension,FeatureElement

Operators

|(other as CTBlockIngredient) as CTBlockIngredient
Combines this Block with another Block to create a new CTBlockIngredient.
script.zs
// (AbstractCauldronBlock | (other as BlockIngredient)) as BlockIngredient
myAbstractCauldronBlock | myCTBlockIngredient

Parameters:

other Type: BlockIngredient - The other Block to combine with.

Return Type: BlockIngredient

==(other as Block) as bool
Checks whether this Block matches another Block.
script.zs
// (AbstractCauldronBlock == (other as Block)) as bool
myAbstractCauldronBlock == myBlock

Parameters:

other Type: Block - The other Block to check if this Block matches.

Return Type: bool

Members

implicit as CTBlockIngredient
Gets the CTBlockIngredient representation of this Block.
script.zs
// AbstractCauldronBlock as BlockIngredient
myAbstractCauldronBlock as CTBlockIngredient

Return Type: BlockIngredient

asItem() as Item
Gets the Item representation of this Block.
***NOTE:*** Not all Blocks have Items, for instance, a Lit Redstone Lamp does not have an Item.

Returns: The Item representation of this Block.

script.zs
// AbstractCauldronBlock.asItem() as ItemDefinition;
myAbstractCauldronBlock.asItem();

Return Type: ItemDefinition

asItem() as Item
script.zs
// AbstractCauldronBlock.asItem() as ItemDefinition;
myAbstractCauldronBlock.asItem();

Return Type: ItemDefinition

as Item
Gets the Item representation of this Block.
***NOTE:*** Not all Blocks have Items, for instance, a Lit Redstone Lamp does not have an Item.
script.zs
// AbstractCauldronBlock as ItemDefinition
myAbstractCauldronBlock as Item

Return Type: ItemDefinition

as Item
script.zs
// AbstractCauldronBlock as ItemDefinition
myAbstractCauldronBlock as Item

Return Type: ItemDefinition

Getter
Gets the block bracket handler syntax for this Block.
E.G. <block:minecraft:dirt>
script.zs
// AbstractCauldronBlock.commandString as string
myAbstractCauldronBlock.commandString

Return Type: string

commandString() as string
Gets the block bracket handler syntax for this Block.
E.G. <block:minecraft:dirt>

Returns: The block bracket handler syntax for this Block.

script.zs
// AbstractCauldronBlock.commandString() as string;
myAbstractCauldronBlock.commandString();

Return Type: string

as string
Gets the block bracket handler syntax for this Block.
E.G. <block:minecraft:dirt>
script.zs
// AbstractCauldronBlock as string
myAbstractCauldronBlock as string

Return Type: string

Getter
Gets the default BlockState of this Block.
script.zs
// AbstractCauldronBlock.defaultState as BlockState
myAbstractCauldronBlock.defaultState

Return Type: BlockState

defaultState() as BlockState
Gets the default BlockState of this Block.

Returns: The default BlockState of this Block.

script.zs
// AbstractCauldronBlock.defaultState() as BlockState;
myAbstractCauldronBlock.defaultState();

Return Type: BlockState

Getter
Gets the translation key that is used to localize this Block.
script.zs
// AbstractCauldronBlock.descriptionId as string
myAbstractCauldronBlock.descriptionId

Return Type: string

descriptionId() as string
Gets the translation key that is used to localize this Block.

Returns: The unlocalized name of this block.

script.zs
// AbstractCauldronBlock.descriptionId() as string;
myAbstractCauldronBlock.descriptionId();

Return Type: string

Getter
Checks if the opacity of this block is different in different areas of the Block.
script.zs
// AbstractCauldronBlock.dynamicShape as bool
myAbstractCauldronBlock.dynamicShape

Return Type: bool

dynamicShape() as bool
Checks if the opacity of this block is different in different areas of the Block.

Returns: True if this Block has variable opacity. False otherwise.

script.zs
// AbstractCauldronBlock.dynamicShape() as bool;
myAbstractCauldronBlock.dynamicShape();

Return Type: bool

Getter
Gets the blast resistance of this Block.
script.zs
// AbstractCauldronBlock.explosionResistance as float
myAbstractCauldronBlock.explosionResistance

Return Type: float

Setter
Sets the blast resistance of this Block.
script.zs
// AbstractCauldronBlock.explosionResistance = (resistance as float);
myAbstractCauldronBlock.explosionResistance = myFloat;

Parameters:

resistance Type: float - The new blast resistance of this Block.
explosionResistance() as float
Gets the blast resistance of this Block.

Returns: The blast resistance of this Block.

script.zs
// AbstractCauldronBlock.explosionResistance() as float;
myAbstractCauldronBlock.explosionResistance();

Return Type: float

explosionResistance(resistance as float)
Sets the blast resistance of this Block.
script.zs
// AbstractCauldronBlock.explosionResistance(resistance as float);
myAbstractCauldronBlock.explosionResistance(2);

Parameters:

resistance Type: float - The new blast resistance of this Block.
Getter
Gets the friction of this Block.
script.zs
// AbstractCauldronBlock.friction as float
myAbstractCauldronBlock.friction

Return Type: float

Setter
Sets the friction of this Block.
script.zs
// AbstractCauldronBlock.friction = (friction as float);
myAbstractCauldronBlock.friction = myFloat;

Parameters:

friction Type: float - The new friction of this Block.
friction() as float
Gets the friction of this Block.

Returns: The friction of this Block.

script.zs
// AbstractCauldronBlock.friction() as float;
myAbstractCauldronBlock.friction();

Return Type: float

friction(friction as float)
Sets the friction of this Block.
script.zs
// AbstractCauldronBlock.friction(friction as float);
myAbstractCauldronBlock.friction(2);

Parameters:

friction Type: float - The new friction of this Block.
Getter
Checks if entities can collide with this Block.
script.zs
// AbstractCauldronBlock.hasCollision as bool
myAbstractCauldronBlock.hasCollision

Return Type: bool

Setter
Sets whether entities can collide with this Block.
script.zs
// AbstractCauldronBlock.hasCollision = (canCollide as bool);
myAbstractCauldronBlock.hasCollision = myBool;

Parameters:

canCollide Type: bool - Can entities collide with this Block.
hasCollision() as bool
Checks if entities can collide with this Block.

Returns: True if entities will collide with this Block. False otherwise.

script.zs
// AbstractCauldronBlock.hasCollision() as bool;
myAbstractCauldronBlock.hasCollision();

Return Type: bool

hasCollision(canCollide as bool)
Sets whether entities can collide with this Block.
script.zs
// AbstractCauldronBlock.hasCollision(canCollide as bool);
myAbstractCauldronBlock.hasCollision(true);

Parameters:

canCollide Type: bool - Can entities collide with this Block.
isFull(blockState as BlockState) as bool
Checks if this cauldron is full.

Returns: True if full, false otherwise.

script.zs
// AbstractCauldronBlock.isFull(blockState as BlockState) as bool;
myAbstractCauldronBlock.isFull(<blockstate:minecraft:cauldron:level=3>);

Parameters:

blockState Type: BlockState - The current block state of the cauldron.

Return Type: bool

isPossibleToRespawnInThis(state as BlockState) as bool
Checks if an entity can be spawned inside 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.

script.zs
// AbstractCauldronBlock.isPossibleToRespawnInThis(state as BlockState) as bool;
myAbstractCauldronBlock.isPossibleToRespawnInThis(myBlockState);

Parameters:

state Type: BlockState

Return Type: bool

Getter
Gets the jump factor of this Block.
script.zs
// AbstractCauldronBlock.jumpFactor as float
myAbstractCauldronBlock.jumpFactor

Return Type: float

Setter
Sets the jump factor of this Block.
script.zs
// AbstractCauldronBlock.jumpFactor = (jumpFactor as float);
myAbstractCauldronBlock.jumpFactor = myFloat;

Parameters:

jumpFactor Type: float - The new jump factor of this Block.
jumpFactor() as float
Gets the jump factor of this Block.

Returns: The jump factor of this Block.

script.zs
// AbstractCauldronBlock.jumpFactor() as float;
myAbstractCauldronBlock.jumpFactor();

Return Type: float

jumpFactor(jumpFactor as float)
Sets the jump factor of this Block.
script.zs
// AbstractCauldronBlock.jumpFactor(jumpFactor as float);
myAbstractCauldronBlock.jumpFactor(2);

Parameters:

jumpFactor Type: float - The new jump factor of this Block.
Getter
Gets the loot table id for this Block.
script.zs
// AbstractCauldronBlock.lootTable as string
myAbstractCauldronBlock.lootTable

Return Type: string

lootTable() as string
Gets the loot table id for this Block.

Returns: The loot table id for this Block.

script.zs
// AbstractCauldronBlock.lootTable() as string;
myAbstractCauldronBlock.lootTable();

Return Type: string

matches(other as Block) as bool
Checks whether this Block matches another Block.

Returns: True if this Block matches the other Block. False otherwise.

script.zs
// AbstractCauldronBlock.matches(other as Block) as bool;
myAbstractCauldronBlock.matches(myBlock);

Parameters:

other Type: Block - The other Block to check if this Block matches.

Return Type: bool

Getter
Gets the name of this Block
script.zs
// AbstractCauldronBlock.name as MutableComponent
myAbstractCauldronBlock.name

Return Type: MutableComponent

name() as MutableComponent
Gets the name of this Block

Returns: The name of this block.

script.zs
// AbstractCauldronBlock.name() as MutableComponent;
myAbstractCauldronBlock.name();

Return Type: MutableComponent

Getter
Gets a list of valid BlockStates for this Block.
script.zs
// AbstractCauldronBlock.possibleStates as List<BlockState>
myAbstractCauldronBlock.possibleStates

Return Type: List<BlockState>

possibleStates() as List<BlockState>
Gets a list of valid BlockStates for this Block.

Returns: A list of valid BlockStates for this Block.

script.zs
// AbstractCauldronBlock.possibleStates() as List<BlockState>;
myAbstractCauldronBlock.possibleStates();

Return Type: List<BlockState>

Getter
Gets the registry name of this block.
script.zs
// AbstractCauldronBlock.registryName as ResourceLocation
myAbstractCauldronBlock.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
Gets the registry name of this block.

Returns: A ResourceLocation of the registry name of this block.

script.zs
// AbstractCauldronBlock.registryName() as ResourceLocation;
myAbstractCauldronBlock.registryName();

Return Type: ResourceLocation

Getter
Gets the speed factor of this Block.
script.zs
// AbstractCauldronBlock.speedFactor as float
myAbstractCauldronBlock.speedFactor

Return Type: float

Setter
Sets the speed factor of this Block.
script.zs
// AbstractCauldronBlock.speedFactor = (speedFactor as float);
myAbstractCauldronBlock.speedFactor = myFloat;

Parameters:

speedFactor Type: float - The new speed factor of this Block.
speedFactor() as float
Gets the speed factor of this Block.

Returns: The speed factor of this Block.

script.zs
// AbstractCauldronBlock.speedFactor() as float;
myAbstractCauldronBlock.speedFactor();

Return Type: float

speedFactor(speedFactor as float)
Sets the speed factor of this Block.
script.zs
// AbstractCauldronBlock.speedFactor(speedFactor as float);
myAbstractCauldronBlock.speedFactor(2);

Parameters:

speedFactor Type: float - The new speed factor of this Block.