Class RebarSimpleMultiblock.VanillaBlockdataMultiblockComponent

  • All Implemented Interfaces:
    io.github.pylonmc.rebar.block.base.RebarSimpleMultiblock.MultiblockComponent , io.github.pylonmc.rebar.block.base.RebarSimpleMultiblock.MultiblockComponentBlockDisplay , io.github.pylonmc.rebar.block.base.RebarSimpleMultiblock.SingleGhostBlock

    @JvmRecord() 
    public final class RebarSimpleMultiblock.VanillaBlockdataMultiblockComponent
    extends Record implements RebarSimpleMultiblock.SingleGhostBlock, RebarSimpleMultiblock.MultiblockComponent, RebarSimpleMultiblock.MultiblockComponentBlockDisplay
                        

    Represents a vanilla component of a multiblock, which can have one or more blockdatas.

    If multiple blockdatas are specified, the ghost block will automatically cycle through all the given blockdatas in order.

    This should be used only when you want to impose some constraints about the blockdata, for instance:

    <pre>{@code BlockData data = Material.CAMPFIRE.createBlockData("[lit=true]") // requires the campfire to be lit new VanillaBlockdataMultiblockComponent(data); // or if you prefer Campfire fire = (Campfire) Material.CAMPFIRE.createBlockData(); fire.setLit(true); new VanillaBlockdataMultiblockComponent(fire); } </pre>