记录类 DensityFunctions.Marker
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunctions.Marker
- 所有已实现的接口:
DensityFunction
,DensityFunctions.MarkerOrMarked
- 封闭类:
DensityFunctions
protected static record DensityFunctions.Marker(DensityFunctions.Marker.Type type, DensityFunction wrapped)
extends Record
implements DensityFunctions.MarkerOrMarked
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
字段概要
字段修饰符和类型字段说明private final DensityFunctions.Marker.Type
type
记录组件的字段。private final DensityFunction
wrapped
记录组件的字段。从接口继承的字段 net.minecraft.world.level.levelgen.DensityFunction
CODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC
-
构造器概要
构造器限定符构造器说明protected
Marker
(DensityFunctions.Marker.Type type, DensityFunction wrapped) 创建Marker
记录类的实例。 -
方法概要
修饰符和类型方法说明double
compute
(DensityFunction.FunctionContext p_208712_) final boolean
指示某个其他对象是否“等于”此对象。void
fillArray
(double[] p_208716_, DensityFunction.ContextProvider p_208717_) final int
hashCode()
返回此对象的哈希代码值。double
maxValue()
double
minValue()
final String
toString()
返回此记录类的字符串表示形式。type()
返回type
记录组件的值。wrapped()
返回wrapped
记录组件的值。从接口继承的方法 net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
从接口继承的方法 net.minecraft.world.level.levelgen.DensityFunctions.MarkerOrMarked
codec, mapAll
-
字段详细资料
-
type
type
记录组件的字段。 -
wrapped
wrapped
记录组件的字段。
-
-
构造器详细资料
-
Marker
创建Marker
记录类的实例。- 参数:
type
-type
记录组件的值wrapped
-wrapped
记录组件的值
-
-
方法详细资料
-
compute
- 指定者:
compute
在接口中DensityFunction
-
fillArray
- 指定者:
fillArray
在接口中DensityFunction
-
minValue
public double minValue()- 指定者:
minValue
在接口中DensityFunction
-
maxValue
public double maxValue()- 指定者:
maxValue
在接口中DensityFunction
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
type
返回type
记录组件的值。- 指定者:
type
在接口中DensityFunctions.MarkerOrMarked
- 返回:
type
记录组件的值
-
wrapped
返回wrapped
记录组件的值。- 指定者:
wrapped
在接口中DensityFunctions.MarkerOrMarked
- 返回:
wrapped
记录组件的值
-