Package net.minecraft.world.level.levelgen.feature.featuresize
Part 1/1
FeatureSize
- Full name:
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize - Package:
net.minecraft.world.level.levelgen.feature.featuresize - Source:
common—net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize#FeatureSize(OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FeatureSize ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minClippedHeight.
Parameters
OptionalInt optionalInt
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize#getSizeAtHeight(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java:30 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Size At Height
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize#minClippedHeight()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java:32 - Modifiers:
public - Return:
OptionalInt
คืออะไร
ดำเนินการ minClippedHeight ตาม implementation ของ FeatureSize
ทำงานยังไง
คืนค่า: this.minClippedHeight.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize#minClippedHeightCodec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java:14 - Modifiers:
protected static - Return:
RecordCodecBuilder<S, OptionalInt>
คืออะไร
ดำเนินการ minClippedHeightCodec ตาม implementation ของ FeatureSize
ทำงานยังไง
เรียกต่อ: intRange(), optionalFieldOf(), xmap(), map(), orElse(), empty(), isPresent(), of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected RecordCodecBuilder<S, OptionalInt> minClippedHeightCodec() {
return super.minClippedHeightCodec();
}
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSize#type()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSize.java:28 - Modifiers:
protected abstract - Return:
FeatureSizeType<?>
คืออะไร
ดำเนินการ type ตาม implementation ของ FeatureSize
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FeatureSizeType
- Full name:
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSizeType - Package:
net.minecraft.world.level.levelgen.feature.featuresize - Source:
common—net/minecraft/world/level/levelgen/feature/featuresize/FeatureSizeType.java - Type:
class - Modifiers:
public
net.minecraft.world.level.levelgen.feature.featuresize.FeatureSizeType#codec()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/FeatureSizeType.java:20 - Modifiers:
public - Return:
MapCodec<P>
คืออะไร
ดำเนินการ codec ตาม implementation ของ FeatureSizeType
ทำงานยังไง
คืนค่า: this.codec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ThreeLayersFeatureSize
- Full name:
net.minecraft.world.level.levelgen.feature.featuresize.ThreeLayersFeatureSize - Package:
net.minecraft.world.level.levelgen.feature.featuresize - Source:
common—net/minecraft/world/level/levelgen/feature/featuresize/ThreeLayersFeatureSize.java - Type:
class - Modifiers:
public - Extends:
FeatureSize
net.minecraft.world.level.levelgen.feature.featuresize.ThreeLayersFeatureSize#getSizeAtHeight(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/ThreeLayersFeatureSize.java:40 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size At Height
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.ThreeLayersFeatureSize#ThreeLayersFeatureSize(int,int,int,int,int,OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/ThreeLayersFeatureSize.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ThreeLayersFeatureSize ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: limit, upperLimit, lowerSize, middleSize, upperSize.
Parameters
int iint jint kint lint mOptionalInt optionalInt
ตัวอย่างใช้งาน
OptionalInt optionalInt = ...;
ThreeLayersFeatureSize instance = new ThreeLayersFeatureSize(0, 0, 0, 0, 0, optionalInt);
net.minecraft.world.level.levelgen.feature.featuresize.ThreeLayersFeatureSize#type()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/ThreeLayersFeatureSize.java:35 - Modifiers:
protected - Return:
FeatureSizeType<?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ThreeLayersFeatureSize
ทำงานยังไง
คืนค่า: FeatureSizeType.THREE_LAYERS_FEATURE_SIZE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TwoLayersFeatureSize
- Full name:
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize - Package:
net.minecraft.world.level.levelgen.feature.featuresize - Source:
common—net/minecraft/world/level/levelgen/feature/featuresize/TwoLayersFeatureSize.java - Type:
class - Modifiers:
public - Extends:
FeatureSize
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize#getSizeAtHeight(int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/TwoLayersFeatureSize.java:38 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size At Height
ทำงานยังไง
คืนค่า: j < this.limit ? this.lowerSize : this.upperSize.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize#TwoLayersFeatureSize(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/TwoLayersFeatureSize.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TwoLayersFeatureSize ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: empty().
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize#TwoLayersFeatureSize(int,int,int,OptionalInt)
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/TwoLayersFeatureSize.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TwoLayersFeatureSize ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: limit, lowerSize, upperSize.
Parameters
int iint jint kOptionalInt optionalInt
ตัวอย่างใช้งาน
OptionalInt optionalInt = ...;
TwoLayersFeatureSize instance = new TwoLayersFeatureSize(0, 0, 0, optionalInt);
net.minecraft.world.level.levelgen.feature.featuresize.TwoLayersFeatureSize#type()
- Origin:
common - Source:
net/minecraft/world/level/levelgen/feature/featuresize/TwoLayersFeatureSize.java:33 - Modifiers:
protected - Return:
FeatureSizeType<?>
คืออะไร
ดำเนินการ type ตาม implementation ของ TwoLayersFeatureSize
ทำงานยังไง
คืนค่า: FeatureSizeType.TWO_LAYERS_FEATURE_SIZE.
Parameters
- ไม่มี