Class BlockChoice

java.lang.Object
net.ixdarklord.folios.internal.client.build.BlockChoice

public final class BlockChoice extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether more than one block will do, so what is shown changes.
    boolean
    equals(Object other)
     
    int
     
    boolean
     
    int
    How many items placing it takes: none for the half of a door or bed that comes with the other, two for a double slab.
    static int
    items(net.minecraft.world.level.block.state.BlockState state)
     
    key()
    What choices are counted together as: the block for one, the tag (and its properties) for a tag.
    boolean
    matches(net.minecraft.world.level.block.state.BlockState there)
    Whether a block standing in the world is one that will do.
    net.minecraft.network.chat.Component
    name(float time)
    Its name: the block's, or for a tag "Any …", by the tag's translation if it has one.
    of(String written)
    A block or tag as a page writes it; read when first needed.
    of(net.minecraft.world.level.block.state.BlockState state)
    Just this block state.
    List<net.minecraft.world.level.block.state.BlockState>
    The blocks that will do here, in a steady order; empty for none (air, or what can't be read).
    @Nullable net.minecraft.world.level.block.state.BlockState
    shown(float time)
    The block shown at a time (seconds): a tag's blocks in turn, a second each.
    net.minecraft.world.item.ItemStack
    stack(float time, int count)
    A stack of what is shown at a time, count of it; empty for a block with no item.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • of

      public static BlockChoice of(String written)
      A block or tag as a page writes it; read when first needed.
    • of

      public static BlockChoice of(net.minecraft.world.level.block.state.BlockState state)
      Just this block state.
    • isTag

      public boolean isTag()
    • options

      public List<net.minecraft.world.level.block.state.BlockState> options()
      The blocks that will do here, in a steady order; empty for none (air, or what can't be read).
    • shown

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState shown(float time)
      The block shown at a time (seconds): a tag's blocks in turn, a second each.
    • cycles

      public boolean cycles()
      Whether more than one block will do, so what is shown changes.
    • matches

      public boolean matches(net.minecraft.world.level.block.state.BlockState there)
      Whether a block standing in the world is one that will do.
    • key

      public Object key()
      What choices are counted together as: the block for one, the tag (and its properties) for a tag.
    • items

      public int items()
      How many items placing it takes: none for the half of a door or bed that comes with the other, two for a double slab.
    • items

      public static int items(net.minecraft.world.level.block.state.BlockState state)
    • stack

      public net.minecraft.world.item.ItemStack stack(float time, int count)
      A stack of what is shown at a time, count of it; empty for a block with no item.
    • name

      public net.minecraft.network.chat.Component name(float time)
      Its name: the block's, or for a tag "Any …", by the tag's translation if it has one.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object