类 LocationPredicate
java.lang.Object
net.minecraft.advancements.critereon.LocationPredicate
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final LocationPredicate
private final ResourceKey<Biome>
private final BlockPredicate
private final ResourceKey<Level>
private final FluidPredicate
private final LightPredicate
private static final org.slf4j.Logger
private final Boolean
private final ResourceKey<Structure>
private final MinMaxBounds.Doubles
private final MinMaxBounds.Doubles
private final MinMaxBounds.Doubles
-
构造器概要
构造器构造器说明LocationPredicate
(MinMaxBounds.Doubles pX, MinMaxBounds.Doubles pY, MinMaxBounds.Doubles pZ, ResourceKey<Biome> pBiome, ResourceKey<Structure> pFeature, ResourceKey<Level> pDimension, Boolean pSmokey, LightPredicate pLight, BlockPredicate pBlock, FluidPredicate pFluid) -
方法概要
修饰符和类型方法说明static LocationPredicate
atYLocation
(MinMaxBounds.Doubles pYRange) static LocationPredicate
fromJson
(com.google.gson.JsonElement pJson) static LocationPredicate
inBiome
(ResourceKey<Biome> pBiome) static LocationPredicate
inDimension
(ResourceKey<Level> pDimension) static LocationPredicate
inStructure
(ResourceKey<Structure> pStructure) boolean
matches
(ServerLevel pLevel, double pX, double pY, double pZ) com.google.gson.JsonElement
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ANY
-
x
-
y
-
z
-
biome
-
structure
-
dimension
-
smokey
-
light
-
block
-
fluid
-
-
构造器详细资料
-
LocationPredicate
public LocationPredicate(MinMaxBounds.Doubles pX, MinMaxBounds.Doubles pY, MinMaxBounds.Doubles pZ, @Nullable ResourceKey<Biome> pBiome, @Nullable ResourceKey<Structure> pFeature, @Nullable ResourceKey<Level> pDimension, @Nullable Boolean pSmokey, LightPredicate pLight, BlockPredicate pBlock, FluidPredicate pFluid)
-
-
方法详细资料
-
inBiome
-
inDimension
-
inStructure
-
atYLocation
-
matches
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-