Package net.minecraft.util.collection
Record Class ListOperation.ReplaceSection
java.lang.Object
java.lang.Record
net.minecraft.util.collection.ListOperation.ReplaceSection
- Record Components:
offset-size-
- All Implemented Interfaces:
ListOperation
- Enclosing interface:
ListOperation
public static record ListOperation.ReplaceSection(int offset, Optional<Integer> size)
extends Record
implements ListOperation
- Mappings:
Namespace Name named net/minecraft/util/collection/ListOperation$ReplaceSectionintermediary net/minecraft/class_9368$class_9372official etd$dnamed offsetintermediary comp_2464official cnamed sizeintermediary comp_2465official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.collection.ListOperation
ListOperation.Append, ListOperation.Insert, ListOperation.Mode, ListOperation.ReplaceAll, ListOperation.ReplaceSection, ListOperation.Values<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ListOperation.ReplaceSection> private static final Loggerprivate final intThe field for theoffsetrecord component.The field for thesizerecord component.Fields inherited from interface net.minecraft.util.collection.ListOperation
UNLIMITED_SIZE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionReplaceSection(int offset) ReplaceSection(int int2, Optional<Integer> optional) -
Method Summary
Modifier and TypeMethodDescription<T> List<T> final booleanIndicates whether some other object is "equal to" this one.getMode()final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.ListOperation
apply
-
Field Details
-
offset
private final int offsetThe field for theoffsetrecord component. -
size
The field for thesizerecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/util/collection/ListOperation$ReplaceSection;LOGGER:Lorg/slf4j/Logger;intermediary field_49855Lnet/minecraft/class_9368$class_9372;field_49855:Lorg/slf4j/Logger;official eLetd$d;e:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/collection/ListOperation$ReplaceSection;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_49854Lnet/minecraft/class_9368$class_9372;field_49854:Lcom/mojang/serialization/MapCodec;official bLetd$d;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
ReplaceSection
public ReplaceSection(int offset) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/collection/ListOperation$ReplaceSection;<init>(I)Vintermediary <init>Lnet/minecraft/class_9368$class_9372;<init>(I)Vofficial <init>Letd$d;<init>(I)V
-
ReplaceSection
-
-
Method Details
-
getMode
- Specified by:
getModein interfaceListOperation- Mappings:
Namespace Name Mixin selector named getModeLnet/minecraft/util/collection/ListOperation;getMode()Lnet/minecraft/util/collection/ListOperation$Mode;intermediary method_58191Lnet/minecraft/class_9368;method_58191()Lnet/minecraft/class_9368$class_9373;official aLetd;a()Letd$f;
-
apply
- Specified by:
applyin interfaceListOperation- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/util/collection/ListOperation;apply(Ljava/util/List;Ljava/util/List;I)Ljava/util/List;intermediary method_58192Lnet/minecraft/class_9368;method_58192(Ljava/util/List;Ljava/util/List;I)Ljava/util/List;official aLetd;a(Ljava/util/List;Ljava/util/List;I)Ljava/util/List;
-
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 '=='. -
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-