Package net.minecraft.predicate.entity
Record Class LocationPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.LocationPredicate
- Record Components:
- position-
- biomes-
- structures-
- dimension-
- smokey-
- light-
- block-
- fluid-
- canSeeSky-
public record LocationPredicate(Optional<LocationPredicate.PositionRange> position, Optional<RegistryEntryList<Biome>> biomes, Optional<RegistryEntryList<Structure>> structures, Optional<RegistryKey<World>> dimension, Optional<Boolean> smokey, Optional<LightPredicate> light, Optional<BlockPredicate> block, Optional<FluidPredicate> fluid, Optional<Boolean> canSeeSky)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/LocationPredicate- intermediary - net/minecraft/class_2090- official - di- named - position- intermediary - comp_1794- official - b- named - biomes- intermediary - comp_2375- official - c- named - structures- intermediary - comp_2376- official - d- named - dimension- intermediary - comp_1797- official - e- named - smokey- intermediary - comp_1798- official - f- named - light- intermediary - comp_1799- official - g- named - block- intermediary - comp_1800- official - h- named - fluid- intermediary - comp_1801- official - i- named - canSeeSky- intermediary - comp_2771- official - j
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Optional<RegistryEntryList<Biome>> The field for thebiomesrecord component.private final Optional<BlockPredicate> The field for theblockrecord component.The field for thecanSeeSkyrecord component.static final com.mojang.serialization.Codec<LocationPredicate> private final Optional<RegistryKey<World>> The field for thedimensionrecord component.private final Optional<FluidPredicate> The field for thefluidrecord component.private final Optional<LightPredicate> The field for thelightrecord component.private final Optional<LocationPredicate.PositionRange> The field for thepositionrecord component.The field for thesmokeyrecord component.private final Optional<RegistryEntryList<Structure>> The field for thestructuresrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLocationPredicate(Optional<LocationPredicate.PositionRange> optional, Optional<RegistryEntryList<Biome>> optional2, Optional<RegistryEntryList<Structure>> optional3, Optional<RegistryKey<World>> optional4, Optional<Boolean> optional5, Optional<LightPredicate> optional6, Optional<BlockPredicate> optional7, Optional<FluidPredicate> optional8, Optional<Boolean> optional9) 
- 
Method SummaryModifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.block()Returns the value of theblockrecord component.Returns the value of thecanSeeSkyrecord component.Returns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.light()Returns the value of thelightrecord component.position()Returns the value of thepositionrecord component.smokey()Returns the value of thesmokeyrecord component.Returns the value of thestructuresrecord component.booleantest(ServerWorld world, double x, double y, double z) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
positionThe field for thepositionrecord component.
- 
biomesThe field for thebiomesrecord component.
- 
structuresThe field for thestructuresrecord component.
- 
dimensionThe field for thedimensionrecord component.
- 
smokeyThe field for thesmokeyrecord component.
- 
lightThe field for thelightrecord component.
- 
blockThe field for theblockrecord component.
- 
fluidThe field for thefluidrecord component.
- 
canSeeSkyThe field for thecanSeeSkyrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/LocationPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45760- Lnet/minecraft/class_2090;field_45760:Lcom/mojang/serialization/Codec;- official - a- Ldi;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
LocationPredicatepublic LocationPredicate(Optional<LocationPredicate.PositionRange> optional, Optional<RegistryEntryList<Biome>> optional2, Optional<RegistryEntryList<Structure>> optional3, Optional<RegistryKey<World>> optional4, Optional<Boolean> optional5, Optional<LightPredicate> optional6, Optional<BlockPredicate> optional7, Optional<FluidPredicate> optional8, Optional<Boolean> optional9) 
 
- 
- 
Method Details- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/LocationPredicate;test(Lnet/minecraft/server/world/ServerWorld;DDD)Z- intermediary - method_9018- Lnet/minecraft/class_2090;method_9018(Lnet/minecraft/class_3218;DDD)Z- official - a- Ldi;a(Lard;DDD)Z
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
positionReturns the value of thepositionrecord component.- Returns:
- the value of the positionrecord component
 
- 
biomesReturns the value of thebiomesrecord component.- Returns:
- the value of the biomesrecord component
 
- 
structuresReturns the value of thestructuresrecord component.- Returns:
- the value of the structuresrecord component
 
- 
dimensionReturns the value of thedimensionrecord component.- Returns:
- the value of the dimensionrecord component
 
- 
smokeyReturns the value of thesmokeyrecord component.- Returns:
- the value of the smokeyrecord component
 
- 
lightReturns the value of thelightrecord component.- Returns:
- the value of the lightrecord component
 
- 
blockReturns the value of theblockrecord component.- Returns:
- the value of the blockrecord component
 
- 
fluidReturns the value of thefluidrecord component.- Returns:
- the value of the fluidrecord component
 
- 
canSeeSkyReturns the value of thecanSeeSkyrecord component.- Returns:
- the value of the canSeeSkyrecord component
 
 
-