Class FoliosReveals
java.lang.Object
net.ixdarklord.folios.api.client.FoliosReveals
The reveal effects books can use (
FoliosReveal), by id. CoolCatLib's own:
folios:rise, the default: each part fades in as it rises a few pixels into place, from the top of the page downfolios:fade: everything fades in togetherfolios:ink: the page fills in from top to bottom like ink soaking down it, with a soft edgefolios:sweep: the page fills in from its spine edge outwardsfolios:scatter: parts drift in from a little way off, each from its own side, settling as they fade infolios:burn: each thing on the page is burnt into it in turn, down the page and along each line: it flares white-hot, burns orange with flames licking up off it, chars and settles into its own colour, with sparks and smoke rising off what burnsfolios:runes: each part first shows as glowing runes that flicker and settle into its own words, while runes drift up the page and a shimmer of light crosses itnone: shown at once
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.Identifierstatic final FoliosReveal.UseThe reveal a book has when book.json doesn't say.static final floatHow long an effect takes when book.json names it without a length.static final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifier -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FoliosRevealget(net.minecraft.resources.Identifier id) The effect with that id; null when there is none.static voidregister(net.minecraft.resources.Identifier id, FoliosReveal effect) Adds an effect, or replaces the one with that id.
-
Field Details
-
NONE
public static final net.minecraft.resources.Identifier NONE -
RISE
public static final net.minecraft.resources.Identifier RISE -
FADE
public static final net.minecraft.resources.Identifier FADE -
INK
public static final net.minecraft.resources.Identifier INK -
SWEEP
public static final net.minecraft.resources.Identifier SWEEP -
SCATTER
public static final net.minecraft.resources.Identifier SCATTER -
BURN
public static final net.minecraft.resources.Identifier BURN -
RUNES
public static final net.minecraft.resources.Identifier RUNES -
DEFAULT
The reveal a book has when book.json doesn't say. -
DEFAULT_SECONDS
public static final float DEFAULT_SECONDSHow long an effect takes when book.json names it without a length.- See Also:
-
-
Method Details
-
register
Adds an effect, or replaces the one with that id. Safe to call while mods load. -
get
The effect with that id; null when there is none.
-