Class WorldStructurePieceQuarterSymmetrical.BlockWrapper

java.lang.Object
org.cyclops.evilcraft.world.gen.structure.WorldStructurePieceQuarterSymmetrical.BlockWrapper
Enclosing class:
WorldStructurePieceQuarterSymmetrical

public class WorldStructurePieceQuarterSymmetrical.BlockWrapper extends Object
This is a wrapper class, which wraps around a Block and pairs with it the metadata for that specific blockState instance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    An optional action after a block has been placed.
    net.minecraft.world.level.block.state.BlockState
    BlockState for which this instance is a wrapper.
    float
    Chance of spawning
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockWrapper(net.minecraft.world.level.block.Block block)
    Creates a new wrapper around the specified Block with metadata 0.
    BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState)
    Creates a new wrapper around the specified BlockState with the specified metadata.
    BlockWrapper(net.minecraft.world.level.block.state.BlockState blockState, float chance)
    Creates a new wrapper around the specified Block with the specified metadata and a certain chance.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blockState

      public net.minecraft.world.level.block.state.BlockState blockState
      BlockState for which this instance is a wrapper.
    • chance

      public float chance
      Chance 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 specified Block with 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 specified BlockState with 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 specified Block with the specified metadata and a certain chance.
      Parameters:
      blockState - The block to wrap.
      chance - The chance on spawning.