public class LightPredicate extends Object
Modifier and Type | Field and Description |
---|---|
static LightPredicate |
ANY |
private NumberRange.IntRange |
range |
Modifier | Constructor and Description |
---|---|
private |
LightPredicate(NumberRange.IntRange range) |
Modifier and Type | Method and Description |
---|---|
static LightPredicate |
fromJson(JsonElement json) |
boolean |
test(ServerWorld world,
BlockPos pos) |
JsonElement |
toJson() |
public static final LightPredicate ANY
private final NumberRange.IntRange range
private LightPredicate(NumberRange.IntRange range)
public boolean test(ServerWorld world, BlockPos pos)
public JsonElement toJson()
public static LightPredicate fromJson(@Nullable JsonElement json)