Record Class UnobstructedBlockPredicate
java.lang.Object
java.lang.Record
net.minecraft.world.gen.blockpredicate.UnobstructedBlockPredicate
- Record Components:
- offset-
- All Implemented Interfaces:
- BiPredicate<StructureWorldAccess,,- BlockPos> - BlockPredicate
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate- intermediary - net/minecraft/class_9751- official - een- named - offset- intermediary - comp_2779- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec<UnobstructedBlockPredicate> private final Vec3iThe field for theoffsetrecord component.Fields inherited from interface net.minecraft.world.gen.blockpredicate.BlockPredicateBASE_CODEC, IS_AIR, IS_AIR_OR_WATER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.booleantest(StructureWorldAccess structureWorldAccess, BlockPos blockPos) 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 java.util.function.BiPredicateand, negate, or
- 
Field Details- 
offsetThe field for theoffsetrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_51789- Lnet/minecraft/class_9751;field_51789:Lcom/mojang/serialization/MapCodec;- official - a- Leen;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
UnobstructedBlockPredicateUnobstructedBlockPredicate(Vec3i vec3i) 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- BlockPredicate
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;getType()Lnet/minecraft/world/gen/blockpredicate/BlockPredicateType;- intermediary - method_38873- Lnet/minecraft/class_6646;method_38873()Lnet/minecraft/class_6647;- official - a- Leea;a()Leeb;
 
- 
test- Specified by:
- testin interface- BiPredicate<StructureWorldAccess,- BlockPos> 
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_60287- Lnet/minecraft/class_9751;method_60287(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z- official - a- Leen;a(Ldhh;Lji;)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).
- 
offsetReturns the value of theoffsetrecord component.- Returns:
- the value of the offsetrecord component
 
 
-