记录类 ListOperation.ReplaceSection
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.functions.ListOperation.ReplaceSection
- 所有已实现的接口:
ListOperation
- 封闭接口:
ListOperation
public static record ListOperation.ReplaceSection(int offset, Optional<Integer> size)
extends Record
implements ListOperation
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.ListOperation
ListOperation.Append, ListOperation.Insert, ListOperation.ReplaceAll, ListOperation.ReplaceSection, ListOperation.StandAlone<T>, ListOperation.Type
-
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
static final com.mojang.serialization.MapCodec
<ListOperation.ReplaceSection> private final int
offset
记录组件的字段。size
记录组件的字段。从接口继承的字段 net.minecraft.world.level.storage.loot.functions.ListOperation
UNLIMITED_CODEC
-
构造器概要
构造器构造器说明ReplaceSection
(int p_333961_) ReplaceSection
(int offset, Optional<Integer> size) 创建ReplaceSection
记录类的实例。 -
方法概要
从接口继承的方法 net.minecraft.world.level.storage.loot.functions.ListOperation
apply
-
字段详细资料
-
offset
private final int offsetoffset
记录组件的字段。 -
size
size
记录组件的字段。 -
LOGGER
private static final org.slf4j.Logger LOGGER -
MAP_CODEC
-
-
构造器详细资料
-
ReplaceSection
public ReplaceSection(int p_333961_) -
ReplaceSection
创建ReplaceSection
记录类的实例。- 参数:
offset
-offset
记录组件的值size
-size
记录组件的值
-
-
方法详细资料
-
mode
- 指定者:
mode
在接口中ListOperation
-
apply
- 指定者:
apply
在接口中ListOperation
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
offset
public int offset()返回offset
记录组件的值。- 返回:
offset
记录组件的值
-
size
返回size
记录组件的值。- 返回:
size
记录组件的值
-