Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

PushReaction

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.material.PushReaction;

Description

Represents the push reaction of a block. This is used by pistons to determine how they should push blocks.

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

PushReaction is an enum with 5 constants. They are accessible like so:

script.zs
// PushReaction.BLOCK
<constant:minecraft:material/pushreaction:block>
// PushReaction.DESTROY
<constant:minecraft:material/pushreaction:destroy>
// PushReaction.IGNORE
<constant:minecraft:material/pushreaction:ignore>
// PushReaction.NORMAL
<constant:minecraft:material/pushreaction:normal>
// PushReaction.PUSH_ONLY
<constant:minecraft:material/pushreaction:push_only>