Class BlockChoice
java.lang.Object
net.ixdarklord.folios.internal.client.build.BlockChoice
-
Method Summary
Modifier and TypeMethodDescriptionbooleancycles()Whether more than one block will do, so what is shown changes.booleaninthashCode()booleanisTag()intitems()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 intitems(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.booleanmatches(net.minecraft.world.level.block.state.BlockState there) Whether a block standing in the world is one that will do.net.minecraft.network.chat.Componentname(float time) Its name: the block's, or for a tag "Any …", by the tag's translation if it has one.static BlockChoiceA block or tag as a page writes it; read when first needed.static BlockChoiceof(net.minecraft.world.level.block.state.BlockState state) Just this block state.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).@Nullable net.minecraft.world.level.block.state.BlockStateshown(float time) The block shown at a time (seconds): a tag's blocks in turn, a second each.net.minecraft.world.item.ItemStackstack(float time, int count) A stack of what is shown at a time,countof it; empty for a block with no item.toString()
-
Method Details
-
of
A block or tag as a page writes it; read when first needed. -
of
Just this block state. -
isTag
public boolean isTag() -
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
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,countof 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
-
hashCode
public int hashCode() -
toString
-