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 eaa
named offset
intermediary comp_2779
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec
<UnobstructedBlockPredicate> private final Vec3i
The field for theoffset
record component.Fields inherited from interface net.minecraft.world.gen.blockpredicate.BlockPredicate
BASE_CODEC, IS_AIR, IS_AIR_OR_WATER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.offset()
Returns the value of theoffset
record component.boolean
test
(StructureWorldAccess structureWorldAccess, BlockPos blockPos) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Field Details
-
offset
The field for theoffset
record 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
Leaa;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
UnobstructedBlockPredicate
UnobstructedBlockPredicate(Vec3i vec3i)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceBlockPredicate
- 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
Ldzn;a()Ldzo;
-
test
- Specified by:
test
in interfaceBiPredicate<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
Leaa;a(Lddc;Lja;)Z
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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)
. -
offset
Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-