Class GameTestTest
java.lang.Object
net.neoforged.neoforge.oldtest.misc.GameTestTest
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DeferredRegister
<BlockEntityType<?>> private static final DeferredRegister.Blocks
static final boolean
private static final DeferredBlock
<Block> private static final DeferredHolder
<BlockEntityType<?>, BlockEntityType<GameTestTest.EnergyBlockEntity>> private static final DeferredItem
<BlockItem> private static final DeferredRegister.Items
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
static List
<TestFunction> An example game test generator.void
private void
static void
testEnergyStorage
(GameTestHelper helper) static void
testHopperPickup
(GameTestHelper helper) static void
testWood
(GameTestHelper helper) An example game test
-
Field Details
-
MODID
- See Also:
-
ENABLED
public static final boolean ENABLED- See Also:
-
BLOCKS
-
ITEMS
-
BLOCK_ENTITIES
-
ENERGY_BLOCK
-
ENERGY_BLOCK_ITEM
-
ENERGY_BLOCK_ENTITY
private static final DeferredHolder<BlockEntityType<?>,BlockEntityType<GameTestTest.EnergyBlockEntity>> ENERGY_BLOCK_ENTITY
-
-
Constructor Details
-
GameTestTest
public GameTestTest(net.neoforged.bus.api.IEventBus modBus)
-
-
Method Details
-
addCreative
-
registerCaps
-
onRegisterGameTests
-
testWood
An example game test- Must take one parameter, the
GameTestHelper
- The return type is ignored, so it should be
void
- Can be
static
or non-staticWARNING: If made non-static, then it will create an instance of the class every time it is run.
- Must take one parameter, the
-
generateTests
An example game test generator.A game test generator generates a collection of test functions. It is called immediately when registered to GameTestRegistry.
- Must return
Collection<TestFunction>
(or a subclass) - Must take no parameters
- Can be
static
or non-static
WARNING: If made non-static, then it will create an instance of the class every time it is run.
- Must return
-
testHopperPickup
-
testEnergyStorage
-