Class SpellTables
java.lang.Object
com.binaris.wizardry.core.gametest.SpellTables
Class mostly used in minecraft gametesting framework for checking spell values in different contexts. Made to allow
quick rebalance and test of spell cast values, this is made by used a Markdown table to show the spell values based
on cast context (rows) and scenarios (columns). The rows contain the whole context and the column uses that context
in the wanted scenario to return the result in a readable format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordA column represents the scenario that will return a desired result to be comparedstatic final recordA row represents a context where you're going to cast a spell -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultColumns(SpellTables.Builder builder) static voidaddDefaultRows(SpellTables.Builder builder, Spell spell, net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.phys.Vec3 pos, Element element) static SpellTables.Columnstatic SpellTables.ColumncolumnByProperty(String name, SpellProperty<? extends Number> property, String modifier) static voidfireCastEvent(SpellCastEvent.Source source, CastContext ctx, Spell spell) static SpellTables.RowtoString()
-
Method Details
-
generateTable
-
toString
-
addDefaultRows
public static void addDefaultRows(SpellTables.Builder builder, Spell spell, net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.phys.Vec3 pos, Element element) -
addDefaultColumns
-
columnByProperty
public static SpellTables.Column columnByProperty(String name, SpellProperty<? extends Number> property, String modifier) -
columnByModifiers
-
rowPlayer
public static SpellTables.Row rowPlayer(String name, Spell spell, net.minecraft.world.entity.player.Player player) -
fireCastEvent
-