Package net.minecraft.predicate.entity
Record Class SlimePredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.SlimePredicate
- Record Components:
size
-
- All Implemented Interfaces:
EntitySubPredicate
public record SlimePredicate(NumberRange.IntRange size)
extends Record
implements EntitySubPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/entity/SlimePredicate
intermediary net/minecraft/class_7383
official dv
named size
intermediary comp_1829
official c
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SlimePredicate> private final NumberRange.IntRange
The field for thesize
record component. -
Constructor Summary
ConstructorDescriptionCreates an instance of aSlimePredicate
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<SlimePredicate> getCodec()
final int
hashCode()
Returns a hash code value for this object.static SlimePredicate
of
(NumberRange.IntRange size) size()
Returns the value of thesize
record component.boolean
test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
size
The field for thesize
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/SlimePredicate;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45776
Lnet/minecraft/class_7383;field_45776:Lcom/mojang/serialization/MapCodec;
official b
Ldv;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SlimePredicate
Creates an instance of aSlimePredicate
record class.- Parameters:
size
- the value for thesize
record component
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/predicate/entity/SlimePredicate;of(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/entity/SlimePredicate;
intermediary method_43157
Lnet/minecraft/class_7383;method_43157(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_7383;
official a
Ldv;a(Lde$d;)Ldv;
-
test
- Specified by:
test
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/EntitySubPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_22497
Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
official a
Lbv;a(Lbsh;Laqm;Lewh;)Z
-
getCodec
- Specified by:
getCodec
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_58152
Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;
official a
Lbv;a()Lcom/mojang/serialization/MapCodec;
-
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)
. -
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-