类 TestFunction
java.lang.Object
net.minecraft.gametest.framework.TestFunction
-
字段概要
字段 -
构造器概要
构造器构造器说明TestFunction
(String pBatchName, String pTestName, String pStructureName, int pMaxTicks, long pSetupTicks, boolean pRequired, Consumer<GameTestHelper> pFunction) TestFunction
(String pBatchName, String pTestName, String pStructureName, Rotation pRotation, int pMaxTicks, long pSetupTicks, boolean pRequired, int pRequiredSuccesses, int pMaxAttempts, Consumer<GameTestHelper> pFunction) TestFunction
(String pBatchName, String pTestName, String pStructureName, Rotation pRotation, int pMaxTicks, long pSetupTicks, boolean pRequired, Consumer<GameTestHelper> pFunction) -
方法概要
修饰符和类型方法说明int
int
int
long
boolean
isFlaky()
boolean
void
run
(GameTestHelper pGameTestHelper) toString()
-
字段详细资料
-
batchName
-
testName
-
structureName
-
required
private final boolean required -
maxAttempts
private final int maxAttempts -
requiredSuccesses
private final int requiredSuccesses -
function
-
maxTicks
private final int maxTicks -
setupTicks
private final long setupTicks -
rotation
-
-
构造器详细资料
-
TestFunction
public TestFunction(String pBatchName, String pTestName, String pStructureName, int pMaxTicks, long pSetupTicks, boolean pRequired, Consumer<GameTestHelper> pFunction) -
TestFunction
-
TestFunction
-
-
方法详细资料
-
run
-
getTestName
-
getStructureName
-
toString
-
getMaxTicks
public int getMaxTicks() -
isRequired
public boolean isRequired() -
getBatchName
-
getSetupTicks
public long getSetupTicks() -
getRotation
-
isFlaky
public boolean isFlaky() -
getMaxAttempts
public int getMaxAttempts() -
getRequiredSuccesses
public int getRequiredSuccesses()
-