Package net.minecraft
Record Class class_12195
java.lang.Object
java.lang.Record
net.minecraft.class_12195
- Record Components:
canSleep-canSetSpawn-explodes-errorMessage-
public record class_12195(class_12195.class_12196 canSleep, class_12195.class_12196 canSetSpawn, boolean explodes, Optional<Text> errorMessage)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12195intermediary net/minecraft/class_12195official cdunamed canSleepintermediary comp_5136official dnamed canSetSpawnintermediary comp_5137official enamed explodesintermediary comp_5138official fnamed errorMessageintermediary comp_5139official g
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_12195.class_12196The field for thecanSetSpawnrecord component.private final class_12195.class_12196The field for thecanSleeprecord component.static final com.mojang.serialization.Codec<class_12195> The field for theerrorMessagerecord component.private final booleanThe field for theexplodesrecord component.static final class_12195static final class_12195 -
Constructor Summary
ConstructorsConstructorDescriptionclass_12195(class_12195.class_12196 canSleep, class_12195.class_12196 canSetSpawn, boolean explodes, Optional<Text> errorMessage) Creates an instance of aclass_12195record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanSetSpawnrecord component.canSleep()Returns the value of thecanSleeprecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.booleanexplodes()Returns the value of theexplodesrecord component.final inthashCode()Returns a hash code value for this object.booleanmethod_75643(World world) booleanmethod_75644(World world) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
canSleep
The field for thecanSleeprecord component. -
canSetSpawn
The field for thecanSetSpawnrecord component. -
explodes
private final boolean explodesThe field for theexplodesrecord component. -
errorMessage
The field for theerrorMessagerecord component. -
field_63703
- Mappings:
Namespace Name Mixin selector named field_63703Lnet/minecraft/class_12195;field_63703:Lnet/minecraft/class_12195;intermediary field_63703Lnet/minecraft/class_12195;field_63703:Lnet/minecraft/class_12195;official aLcdu;a:Lcdu;
-
field_63704
- Mappings:
Namespace Name Mixin selector named field_63704Lnet/minecraft/class_12195;field_63704:Lnet/minecraft/class_12195;intermediary field_63704Lnet/minecraft/class_12195;field_63704:Lnet/minecraft/class_12195;official bLcdu;b:Lcdu;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12195;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63705Lnet/minecraft/class_12195;field_63705:Lcom/mojang/serialization/Codec;official cLcdu;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_12195
public class_12195(class_12195.class_12196 canSleep, class_12195.class_12196 canSetSpawn, boolean explodes, Optional<Text> errorMessage) Creates an instance of aclass_12195record class.- Parameters:
canSleep- the value for thecanSleeprecord componentcanSetSpawn- the value for thecanSetSpawnrecord componentexplodes- the value for theexplodesrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
method_75643
- Mappings:
Namespace Name Mixin selector named method_75643Lnet/minecraft/class_12195;method_75643(Lnet/minecraft/world/World;)Zintermediary method_75643Lnet/minecraft/class_12195;method_75643(Lnet/minecraft/class_1937;)Zofficial aLcdu;a(Ldun;)Z
-
method_75644
- Mappings:
Namespace Name Mixin selector named method_75644Lnet/minecraft/class_12195;method_75644(Lnet/minecraft/world/World;)Zintermediary method_75644Lnet/minecraft/class_12195;method_75644(Lnet/minecraft/class_1937;)Zofficial bLcdu;b(Ldun;)Z
-
method_75641
- Mappings:
Namespace Name Mixin selector named method_75641Lnet/minecraft/class_12195;method_75641()Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;intermediary method_75641Lnet/minecraft/class_12195;method_75641()Lnet/minecraft/class_1657$class_1658;official aLcdu;a()Ldcb$a;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
canSleep
Returns the value of thecanSleeprecord component.- Returns:
- the value of the
canSleeprecord component
-
canSetSpawn
Returns the value of thecanSetSpawnrecord component.- Returns:
- the value of the
canSetSpawnrecord component
-
explodes
public boolean explodes()Returns the value of theexplodesrecord component.- Returns:
- the value of the
explodesrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-