Class WorldStructurePieceQuarterSymmetrical.BlockWrapper
java.lang.Object
org.cyclops.evilcraft.world.gen.structure.WorldStructurePieceQuarterSymmetrical.BlockWrapper
- Enclosing class:
- WorldStructurePieceQuarterSymmetrical
This is a wrapper class, which wraps around a
Block and
pairs with it the metadata for that specific blockState instance.-
Field Summary
FieldsModifier and TypeFieldDescriptionAn optional action after a block has been placed.net.minecraft.world.level.block.state.BlockStateBlockStatefor which this instance is a wrapper.floatChance of spawning -
Constructor Summary
ConstructorsConstructorDescriptionBlockWrapper(net.minecraft.world.level.block.Block block) Creates a new wrapper around the specifiedBlockwith metadata 0.BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState) Creates a new wrapper around the specifiedBlockStatewith the specified metadata.BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState, float chance) Creates a new wrapper around the specifiedBlockwith the specified metadata and a certain chance. -
Method Summary
-
Field Details
-
blockState
public net.minecraft.world.level.block.state.BlockState blockStateBlockStatefor which this instance is a wrapper. -
chance
public float chanceChance of spawning -
action
An optional action after a block has been placed.
-
-
Constructor Details
-
BlockWrapper
public BlockWrapper(net.minecraft.world.level.block.Block block) Creates a new wrapper around the specifiedBlockwith metadata 0.- Parameters:
block- The blockState to wrap.
-
BlockWrapper
public BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState) Creates a new wrapper around the specifiedBlockStatewith the specified metadata.- Parameters:
blockState- The blockState to wrap.
-
BlockWrapper
public BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState, float chance) Creates a new wrapper around the specifiedBlockwith the specified metadata and a certain chance.- Parameters:
blockState- The block to wrap.chance- The chance on spawning.
-