Class FoliosStack
java.lang.Object
net.ixdarklord.folios.api.client.page.FoliosStack
Items as a page names them, worked out only when they're first drawn (item tags need the world's registries, which a
book loaded with resources doesn't have yet). In JSON it is one of:
"minecraft:diamond", or"minecraft:diamond*4"for a count;"#minecraft:logs": every item of a tag, shown in turn;- an item stack object,
{"id": "minecraft:potion", "count": 1, "nbt": "{Potion:\"minecraft:healing\"}"}("nbt"as SNBT text or a JSON object); - a list of any of these, shown in turn.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FoliosStack>static final floatHow long each of several items is shown, in seconds. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackat(float seconds) The stack shown at a time, in seconds: each in turn when there are several.net.minecraft.world.item.ItemStackfirst()voidforget()Forgets what it resolved to, for after registries or tags change.static FoliosStackof(net.minecraft.resources.ResourceLocation item) One item.List<net.minecraft.world.item.ItemStack>stacks()Every stack it stands for; a missing item is a barrier, so the mistake shows.
-
Field Details
-
CODEC
-
CYCLE_SECONDS
public static final float CYCLE_SECONDSHow long each of several items is shown, in seconds.- See Also:
-
-
Method Details
-
of
One item. -
stacks
Every stack it stands for; a missing item is a barrier, so the mistake shows. -
at
public net.minecraft.world.item.ItemStack at(float seconds) The stack shown at a time, in seconds: each in turn when there are several. -
first
public net.minecraft.world.item.ItemStack first() -
forget
public void forget()Forgets what it resolved to, for after registries or tags change.
-