Package net.minecraft.loot.condition
Record Class LocationCheckLootCondition
java.lang.Object
java.lang.Record
net.minecraft.loot.condition.LocationCheckLootCondition
- Record Components:
- predicate-
- offset-
- All Implemented Interfaces:
- Predicate<LootContext>,- LootCondition,- LootContextAware
public record LocationCheckLootCondition(Optional<LocationPredicate> predicate, BlockPos offset)
extends Record
implements LootCondition
- Mappings:
- Namespace - Name - named - net/minecraft/loot/condition/LocationCheckLootCondition- intermediary - net/minecraft/class_205- official - eyz- named - predicate- intermediary - comp_1874- official - b- named - offset- intermediary - comp_1875- official - c
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.loot.condition.LootConditionLootCondition.Builder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LocationCheckLootCondition> private final BlockPosThe field for theoffsetrecord component.private static final com.mojang.serialization.MapCodec<BlockPos> private final Optional<LocationPredicate> The field for thepredicaterecord component.Fields inherited from interface net.minecraft.loot.condition.LootConditionBASE_CODEC, ENTRY_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionLocationCheckLootCondition(Optional<LocationPredicate> optional, BlockPos offset) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic LootCondition.Builderbuilder(LocationPredicate.Builder predicateBuilder) static LootCondition.Builderbuilder(LocationPredicate.Builder predicateBuilder, BlockPos pos) final booleanIndicates whether some other object is "equal to" this one.Set<ContextParameter<?>> getType()final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.Returns the value of thepredicaterecord component.booleantest(LootContext lootContext) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAwarevalidate
- 
Field Details- 
predicateThe field for thepredicaterecord component.
- 
offsetThe field for theoffsetrecord component.
- 
OFFSET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - OFFSET_CODEC- Lnet/minecraft/loot/condition/LocationCheckLootCondition;OFFSET_CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45867- Lnet/minecraft/class_205;field_45867:Lcom/mojang/serialization/MapCodec;- official - g- Leyz;g:Lcom/mojang/serialization/MapCodec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/condition/LocationCheckLootCondition;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45866- Lnet/minecraft/class_205;field_45866:Lcom/mojang/serialization/MapCodec;- official - a- Leyz;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
LocationCheckLootCondition- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/condition/LocationCheckLootCondition;<init>(Ljava/util/Optional;Lnet/minecraft/util/math/BlockPos;)V- intermediary - <init>- Lnet/minecraft/class_205;<init>(Ljava/util/Optional;Lnet/minecraft/class_2338;)V- official - <init>- Leyz;<init>(Ljava/util/Optional;Lji;)V
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- LootCondition
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;- intermediary - method_29325- Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;- official - b- Lezb;b()Lezc;
 
- 
test- Specified by:
- testin interface- Predicate<LootContext>
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/loot/condition/LocationCheckLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z- intermediary - method_881- Lnet/minecraft/class_205;method_881(Lnet/minecraft/class_47;)Z- official - a- Leyz;a(Levs;)Z
 
- 
getAllowedParameters- Specified by:
- getAllowedParametersin interface- LootContextAware
- Mappings:
- Namespace - Name - Mixin selector - named - getAllowedParameters- Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;- intermediary - method_293- Lnet/minecraft/class_46;method_293()Ljava/util/Set;- official - a- Levt;a()Ljava/util/Set;
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/condition/LocationCheckLootCondition;builder(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;)Lnet/minecraft/loot/condition/LootCondition$Builder;- intermediary - method_884- Lnet/minecraft/class_205;method_884(Lnet/minecraft/class_2090$class_2091;)Lnet/minecraft/class_5341$class_210;- official - a- Leyz;a(Ldi$a;)Lezb$a;
 
- 
builderpublic static LootCondition.Builder builder(LocationPredicate.Builder predicateBuilder, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/condition/LocationCheckLootCondition;builder(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/loot/condition/LootCondition$Builder;- intermediary - method_30151- Lnet/minecraft/class_205;method_30151(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2338;)Lnet/minecraft/class_5341$class_210;- official - a- Leyz;a(Ldi$a;Lji;)Lezb$a;
 
- 
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).
- 
predicateReturns the value of thepredicaterecord component.- Returns:
- the value of the predicaterecord component
 
- 
offsetReturns the value of theoffsetrecord component.- Returns:
- the value of the offsetrecord component
 
 
-