记录类 Term.RepeatedWithSeparator<S,T>
java.lang.Object
java.lang.Record
net.minecraft.util.parsing.packrat.Term.RepeatedWithSeparator<S,T>
- 所有已实现的接口:
Term<S>
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.util.parsing.packrat.Term
Term.Alternative<S>, Term.LookAhead<S>, Term.Marker<S,
T>, Term.Maybe<S>, Term.Repeated<S, T>, Term.RepeatedWithSeparator<S, T>, Term.Sequence<S> -
字段概要
字段修饰符和类型字段说明private final boolean
allowTrailingSeparator
记录组件的字段。element
记录组件的字段。listName
记录组件的字段。private final int
minRepetitions
记录组件的字段。separator
记录组件的字段。 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
返回allowTrailingSeparator
记录组件的值。element()
返回element
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。final int
hashCode()
返回此对象的哈希代码值。listName()
返回listName
记录组件的值。int
返回minRepetitions
记录组件的值。boolean
parse
(ParseState<S> p_410533_, Scope p_410855_, Control p_410756_) 返回separator
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。
-
字段详细资料
-
element
element
记录组件的字段。 -
listName
listName
记录组件的字段。 -
separator
separator
记录组件的字段。 -
minRepetitions
private final int minRepetitionsminRepetitions
记录组件的字段。 -
allowTrailingSeparator
private final boolean allowTrailingSeparatorallowTrailingSeparator
记录组件的字段。
-
-
构造器详细资料
-
RepeatedWithSeparator
public RepeatedWithSeparator(NamedRule<S, T> element, Atom<List<T>> listName, Term<S> separator, int minRepetitions, boolean allowTrailingSeparator) 创建RepeatedWithSeparator
记录类的实例。- 参数:
element
-element
记录组件的值listName
-listName
记录组件的值separator
-separator
记录组件的值minRepetitions
-minRepetitions
记录组件的值allowTrailingSeparator
-allowTrailingSeparator
记录组件的值
-
-
方法详细资料
-
parse
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
element
返回element
记录组件的值。- 返回:
element
记录组件的值
-
listName
返回listName
记录组件的值。- 返回:
listName
记录组件的值
-
separator
返回separator
记录组件的值。- 返回:
separator
记录组件的值
-
minRepetitions
public int minRepetitions()返回minRepetitions
记录组件的值。- 返回:
minRepetitions
记录组件的值
-
allowTrailingSeparator
public boolean allowTrailingSeparator()返回allowTrailingSeparator
记录组件的值。- 返回:
allowTrailingSeparator
记录组件的值
-