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