记录类 Climate.TargetPoint
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.TargetPoint
- 封闭类:
Climate
public static record Climate.TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness)
extends Record
-
字段概要
字段修饰符和类型字段说明private final long
continentalness
记录组件的字段。private final long
depth
记录组件的字段。private final long
erosion
记录组件的字段。private final long
humidity
记录组件的字段。private final long
temperature
记录组件的字段。private final long
weirdness
记录组件的字段。 -
构造器概要
构造器构造器说明TargetPoint
(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) 创建TargetPoint
记录类的实例。 -
方法概要
修饰符和类型方法说明long
返回continentalness
记录组件的值。long
depth()
返回depth
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。long
erosion()
返回erosion
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。long
humidity()
返回humidity
记录组件的值。long
返回temperature
记录组件的值。protected long[]
final String
toString()
返回此记录类的字符串表示形式。long
返回weirdness
记录组件的值。
-
字段详细资料
-
temperature
private final long temperaturetemperature
记录组件的字段。 -
humidity
private final long humidityhumidity
记录组件的字段。 -
continentalness
private final long continentalnesscontinentalness
记录组件的字段。 -
erosion
private final long erosionerosion
记录组件的字段。 -
depth
private final long depthdepth
记录组件的字段。 -
weirdness
private final long weirdnessweirdness
记录组件的字段。
-
-
构造器详细资料
-
TargetPoint
public TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) 创建TargetPoint
记录类的实例。- 参数:
temperature
-temperature
记录组件的值humidity
-humidity
记录组件的值continentalness
-continentalness
记录组件的值erosion
-erosion
记录组件的值depth
-depth
记录组件的值weirdness
-weirdness
记录组件的值
-
-
方法详细资料
-
toParameterArray
protected long[] toParameterArray() -
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用 '==' 进行比较。 -
temperature
public long temperature()返回temperature
记录组件的值。- 返回:
temperature
记录组件的值
-
humidity
public long humidity()返回humidity
记录组件的值。- 返回:
humidity
记录组件的值
-
continentalness
public long continentalness()返回continentalness
记录组件的值。- 返回:
continentalness
记录组件的值
-
erosion
public long erosion()返回erosion
记录组件的值。- 返回:
erosion
记录组件的值
-
depth
public long depth()返回depth
记录组件的值。- 返回:
depth
记录组件的值
-
weirdness
public long weirdness()返回weirdness
记录组件的值。- 返回:
weirdness
记录组件的值
-