Package net.neoforged.testframework
Interface TestFramework
- All Known Subinterfaces:
- MutableTestFramework
- All Known Implementing Classes:
- TestFrameworkImpl
@ParametersAreNonnullByDefault
public interface TestFramework
The backend of the testing framework.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface used for accessing a framework's tests.
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeStatus(Test test, Test.Status newStatus, @Nullable Entity changer) Changes the status of a test.net.neoforged.fml.ModContainerReturns the mod container bus linked to this framework.Returns a registrar for in-code structure templates.id()Returns the ID of this framework instance.org.slf4j.Loggerlogger()Returns this framework's logger.net.neoforged.bus.api.IEventBusReturns the mod event bus linked to this framework.voidsetEnabled(Test test, boolean enabled, @Nullable Entity changer) Enables or disables a test.tests()Returns the Tests instance of this framework.
- 
Method Details- 
idResourceLocation id()Returns the ID of this framework instance.- Returns:
- the ID of this framework instance
 
- 
loggerorg.slf4j.Logger logger()Returns this framework's logger.- Returns:
- this framework's logger
 
- 
testsTestFramework.Tests tests()Returns the Tests instance of this framework.- Returns:
- the Tests instance of this framework
 
- 
changeStatusChanges the status of a test.- Parameters:
- test- the test whose status to change
- newStatus- the status to change to
- changer- the entity that changed the status of the test. Usually the player completing a test
 
- 
setEnabledEnables or disables a test.- Parameters:
- test- the test to enable/disable
- enabled-- trueif to enable,- falseif to disable
- changer- the entity that changed the status of the test. Usually the player which runs the enable command
 
- 
modEventBusnet.neoforged.bus.api.IEventBus modEventBus()Returns the mod event bus linked to this framework.- Returns:
- the mod event bus linked to this framework
 
- 
containernet.neoforged.fml.ModContainer container()Returns the mod container bus linked to this framework.- Returns:
- the mod container bus linked to this framework
 
- 
dynamicStructuresDynamicStructureTemplates dynamicStructures()Returns a registrar for in-code structure templates.- Returns:
- a registrar for in-code structure templates
 
 
-