Package net.minecraftforge.debug.misc
Class GameTestTest
java.lang.Object
net.minecraftforge.debug.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<Block>static final booleanprivate static final RegistryObject<Block>private static final RegistryObject<BlockEntityType<GameTestTest.EnergyBlockEntity>>private static final RegistryObject<Item>private static final DeferredRegister<Item>static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<TestFunction>An example game test generator.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 RegistryObject<BlockEntityType<GameTestTest.EnergyBlockEntity>> ENERGY_BLOCK_ENTITY
-
-
Constructor Details
-
GameTestTest
public GameTestTest()
-
-
Method Details
-
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
-