Class GameTestTest
java.lang.Object
net.neoforged.neoforge.oldtest.misc.GameTestTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DeferredRegister<BlockEntityType<?>> private static final DeferredRegister.Blocksstatic final booleanprivate static final DeferredBlock<Block> private static final DeferredHolder<BlockEntityType<?>, BlockEntityType<GameTestTest.EnergyBlockEntity>> private static final DeferredItem<BlockItem> private static final DeferredRegister.Itemsstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic List<TestFunction> An example game test generator.voidprivate voidstatic voidtestEnergyStorage(GameTestHelper helper) static voidtestHopperPickup(GameTestHelper helper) static voidtestWood(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
staticor 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
staticor 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
-