Skip to content

Package net.minecraft.world.level.biome

Part 1/1


AmbientAdditionsSettings

  • Full name: net.minecraft.world.level.biome.AmbientAdditionsSettings
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/AmbientAdditionsSettings.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.AmbientAdditionsSettings#AmbientAdditionsSettings(Holder<SoundEvent>,double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientAdditionsSettings.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ AmbientAdditionsSettings ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: soundEvent, tickChance.

Parameters

  • Holder<SoundEvent> holder
  • double d

ตัวอย่างใช้งาน

Holder<SoundEvent> holder = ...;
AmbientAdditionsSettings instance = new AmbientAdditionsSettings(holder, 0.0D);

net.minecraft.world.level.biome.AmbientAdditionsSettings#getSoundEvent()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientAdditionsSettings.java:24
  • Modifiers: public
  • Return: Holder<SoundEvent>

คืออะไร

อ่านค่า Sound Event

ทำงานยังไง

คืนค่า: this.soundEvent.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientAdditionsSettings instance = ...;
Holder<SoundEvent> result = instance.getSoundEvent();

net.minecraft.world.level.biome.AmbientAdditionsSettings#getTickChance()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientAdditionsSettings.java:28
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Tick Chance

ทำงานยังไง

คืนค่า: this.tickChance.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientAdditionsSettings instance = ...;
double result = instance.getTickChance();

AmbientMoodSettings

  • Full name: net.minecraft.world.level.biome.AmbientMoodSettings
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/AmbientMoodSettings.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.AmbientMoodSettings#AmbientMoodSettings(Holder<SoundEvent>,int,int,double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientMoodSettings.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ AmbientMoodSettings ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: soundEvent, tickDelay, blockSearchExtent, soundPositionOffset.

Parameters

  • Holder<SoundEvent> holder
  • int i
  • int j
  • double d

ตัวอย่างใช้งาน

Holder<SoundEvent> holder = ...;
AmbientMoodSettings instance = new AmbientMoodSettings(holder, 0, 0, 0.0D);

net.minecraft.world.level.biome.AmbientMoodSettings#getBlockSearchExtent()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientMoodSettings.java:40
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Block Search Extent

ทำงานยังไง

คืนค่า: this.blockSearchExtent.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientMoodSettings instance = ...;
int result = instance.getBlockSearchExtent();

net.minecraft.world.level.biome.AmbientMoodSettings#getSoundEvent()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientMoodSettings.java:32
  • Modifiers: public
  • Return: Holder<SoundEvent>

คืออะไร

อ่านค่า Sound Event

ทำงานยังไง

คืนค่า: this.soundEvent.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientMoodSettings instance = ...;
Holder<SoundEvent> result = instance.getSoundEvent();

net.minecraft.world.level.biome.AmbientMoodSettings#getSoundPositionOffset()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientMoodSettings.java:44
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Sound Position Offset

ทำงานยังไง

คืนค่า: this.soundPositionOffset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientMoodSettings instance = ...;
double result = instance.getSoundPositionOffset();

net.minecraft.world.level.biome.AmbientMoodSettings#getTickDelay()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientMoodSettings.java:36
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Tick Delay

ทำงานยังไง

คืนค่า: this.tickDelay.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientMoodSettings instance = ...;
int result = instance.getTickDelay();

AmbientParticleSettings

  • Full name: net.minecraft.world.level.biome.AmbientParticleSettings
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/AmbientParticleSettings.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.AmbientParticleSettings#AmbientParticleSettings(ParticleOptions,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientParticleSettings.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ AmbientParticleSettings ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: options, probability.

Parameters

  • ParticleOptions particleOptions
  • float f

ตัวอย่างใช้งาน

ParticleOptions particleOptions = ...;
AmbientParticleSettings instance = new AmbientParticleSettings(particleOptions, 0.0F);

net.minecraft.world.level.biome.AmbientParticleSettings#canSpawn(RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientParticleSettings.java:29
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Spawn

ทำงานยังไง

เรียกต่อ: nextFloat(). คืนค่า: randomSource.nextFloat() <= this.probability.

Parameters

  • RandomSource randomSource

ตัวอย่างใช้งาน

AmbientParticleSettings instance = ...;
RandomSource randomSource = ...;
boolean result = instance.canSpawn(randomSource);

net.minecraft.world.level.biome.AmbientParticleSettings#getOptions()

  • Origin: common
  • Source: net/minecraft/world/level/biome/AmbientParticleSettings.java:25
  • Modifiers: public
  • Return: ParticleOptions

คืออะไร

อ่านค่า Options

ทำงานยังไง

คืนค่า: this.options.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AmbientParticleSettings instance = ...;
ParticleOptions result = instance.getOptions();

Biome

  • Full name: net.minecraft.world.level.biome.Biome
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Biome.java
  • Type: class
  • Modifiers: public final

net.minecraft.world.level.biome.Biome#coldEnoughToSnow(BlockPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:168
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ coldEnoughToSnow ตาม implementation ของ Biome

ทำงานยังไง

เรียกต่อ: warmEnoughToRain(). คืนค่า: !this.warmEnoughToRain(blockPos, i).

Parameters

  • BlockPos blockPos
  • int i

ตัวอย่างใช้งาน

Biome instance = ...;
BlockPos blockPos = ...;
boolean result = instance.coldEnoughToSnow(blockPos, 0);

net.minecraft.world.level.biome.Biome#getAmbientAdditions()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:252
  • Modifiers: public
  • Return: Optional<AmbientAdditionsSettings>

คืออะไร

อ่านค่า Ambient Additions

ทำงานยังไง

เรียกต่อ: getAmbientAdditionsSettings(). คืนค่า: this.specialEffects.getAmbientAdditionsSettings().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
Optional<AmbientAdditionsSettings> result = instance.getAmbientAdditions();

net.minecraft.world.level.biome.Biome#getAmbientLoop()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:244
  • Modifiers: public
  • Return: Optional<Holder<SoundEvent>>

คืออะไร

อ่านค่า Ambient Loop

ทำงานยังไง

เรียกต่อ: getAmbientLoopSoundEvent(). คืนค่า: this.specialEffects.getAmbientLoopSoundEvent().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
Optional<Holder<SoundEvent>> result = instance.getAmbientLoop();

net.minecraft.world.level.biome.Biome#getAmbientMood()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:248
  • Modifiers: public
  • Return: Optional<AmbientMoodSettings>

คืออะไร

อ่านค่า Ambient Mood

ทำงานยังไง

เรียกต่อ: getAmbientMoodSettings(). คืนค่า: this.specialEffects.getAmbientMoodSettings().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
Optional<AmbientMoodSettings> result = instance.getAmbientMood();

net.minecraft.world.level.biome.Biome#getAmbientParticle()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:240
  • Modifiers: public
  • Return: Optional<AmbientParticleSettings>

คืออะไร

อ่านค่า Ambient Particle

ทำงานยังไง

เรียกต่อ: getAmbientParticleSettings(). คืนค่า: this.specialEffects.getAmbientParticleSettings().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
Optional<AmbientParticleSettings> result = instance.getAmbientParticle();

net.minecraft.world.level.biome.Biome#getBackgroundMusic()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:256
  • Modifiers: public
  • Return: Optional<SimpleWeightedRandomList<Music>>

คืออะไร

อ่านค่า Background Music

ทำงานยังไง

คืนค่า: this.specialEffects.getBackgroundMusic().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
Optional<SimpleWeightedRandomList<Music>> result = instance.getBackgroundMusic();

net.minecraft.world.level.biome.Biome#getBackgroundMusicVolume()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:260
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Background Music Volume

ทำงานยังไง

คืนค่า: this.specialEffects.getBackgroundMusicVolume().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
float result = instance.getBackgroundMusicVolume();

net.minecraft.world.level.biome.Biome#getBaseTemperature()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:224
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Base Temperature

ทำงานยังไง

คืนค่า: this.climateSettings.temperature.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
float result = instance.getBaseTemperature();

net.minecraft.world.level.biome.Biome#getFogColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:199
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Fog Color

ทำงานยังไง

คืนค่า: this.specialEffects.getFogColor().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getFogColor();

net.minecraft.world.level.biome.Biome#getFoliageColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:214
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Foliage Color

ทำงานยังไง

เรียกต่อ: getFoliageColorOverride(), orElseGet(). คืนค่า: this.specialEffects.getFoliageColorOverride().orElseGet(this::getFoliageColorFromTexture).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getFoliageColor();

net.minecraft.world.level.biome.Biome#getGenerationSettings()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:195
  • Modifiers: public
  • Return: BiomeGenerationSettings

คืออะไร

อ่านค่า Generation Settings

ทำงานยังไง

คืนค่า: this.generationSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
BiomeGenerationSettings result = instance.getGenerationSettings();

net.minecraft.world.level.biome.Biome#getGrassColor(double,double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:203
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Grass Color

ทำงานยังไง

เรียกต่อ: getGrassColorOverride(), orElseGet(), getGrassColorModifier(), modifyColor(). คืนค่า: this.specialEffects.getGrassColorModifier().modifyColor(d, e, i).

Parameters

  • double d
  • double e

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getGrassColor(0.0D, 0.0D);

net.minecraft.world.level.biome.Biome#getMobSettings()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:93
  • Modifiers: public
  • Return: MobSpawnSettings

คืออะไร

อ่านค่า Mob Settings

ทำงานยังไง

คืนค่า: this.mobSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
MobSpawnSettings result = instance.getMobSettings();

net.minecraft.world.level.biome.Biome#getPrecipitationAt(BlockPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:101
  • Modifiers: public
  • Return: Biome.Precipitation

คืออะไร

อ่านค่า Precipitation At

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasPrecipitation(), coldEnoughToSnow(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • BlockPos blockPos
  • int i

ตัวอย่างใช้งาน

Biome instance = ...;
BlockPos blockPos = ...;
Biome.Precipitation result = instance.getPrecipitationAt(blockPos, 0);

net.minecraft.world.level.biome.Biome#getSkyColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:89
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Sky Color

ทำงานยังไง

คืนค่า: this.specialEffects.getSkyColor().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getSkyColor();

net.minecraft.world.level.biome.Biome#getSpecialEffects()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:228
  • Modifiers: public
  • Return: BiomeSpecialEffects

คืออะไร

อ่านค่า Special Effects

ทำงานยังไง

คืนค่า: this.specialEffects.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
BiomeSpecialEffects result = instance.getSpecialEffects();

net.minecraft.world.level.biome.Biome#getWaterColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:232
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Water Color

ทำงานยังไง

คืนค่า: this.specialEffects.getWaterColor().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getWaterColor();

net.minecraft.world.level.biome.Biome#getWaterFogColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:236
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Water Fog Color

ทำงานยังไง

คืนค่า: this.specialEffects.getWaterFogColor().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
int result = instance.getWaterFogColor();

net.minecraft.world.level.biome.Biome#hasPrecipitation()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:97
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Precipitation

ทำงานยังไง

คืนค่า: this.climateSettings.hasPrecipitation().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome instance = ...;
boolean result = instance.hasPrecipitation();

net.minecraft.world.level.biome.Biome#shouldFreeze(LevelReader,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:138
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Freeze

ทำงานยังไง

คืนค่า: this.shouldFreeze(levelReader, blockPos, true).

Parameters

  • LevelReader levelReader
  • BlockPos blockPos

ตัวอย่างใช้งาน

Biome instance = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
boolean result = instance.shouldFreeze(levelReader, blockPos);

net.minecraft.world.level.biome.Biome#shouldFreeze(LevelReader,BlockPos,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:142
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Freeze

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: warmEnoughToRain(), getSeaLevel(), isInsideBuildHeight(), getY(), getBrightness(), getBlockState(), getFluidState(), getType(). มีจุด return อย่างน้อย 4 จุด.

Parameters

  • LevelReader levelReader
  • BlockPos blockPos
  • boolean bl

ตัวอย่างใช้งาน

Biome instance = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
boolean result = instance.shouldFreeze(levelReader, blockPos, true);

net.minecraft.world.level.biome.Biome#shouldMeltFrozenOceanIcebergSlightly(BlockPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:176
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Melt Frozen Ocean Iceberg Slightly

ทำงานยังไง

เรียกต่อ: getTemperature(). คืนค่า: this.getTemperature(blockPos, i) > 0.1F.

Parameters

  • BlockPos blockPos
  • int i

ตัวอย่างใช้งาน

Biome instance = ...;
BlockPos blockPos = ...;
boolean result = instance.shouldMeltFrozenOceanIcebergSlightly(blockPos, 0);

net.minecraft.world.level.biome.Biome#shouldSnow(LevelReader,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:180
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Snow

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: warmEnoughToRain(), getSeaLevel(), isInsideBuildHeight(), getY(), getBrightness(), getBlockState(), isAir(), is(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • LevelReader levelReader
  • BlockPos blockPos

ตัวอย่างใช้งาน

Biome instance = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
boolean result = instance.shouldSnow(levelReader, blockPos);

net.minecraft.world.level.biome.Biome#warmEnoughToRain(BlockPos,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:172
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ warmEnoughToRain ตาม implementation ของ Biome

ทำงานยังไง

เรียกต่อ: getTemperature(). คืนค่า: this.getTemperature(blockPos, i) >= 0.15F.

Parameters

  • BlockPos blockPos
  • int i

ตัวอย่างใช้งาน

Biome instance = ...;
BlockPos blockPos = ...;
boolean result = instance.warmEnoughToRain(blockPos, 0);

Biome$BiomeBuilder

  • Full name: net.minecraft.world.level.biome.Biome$BiomeBuilder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Biome.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.biome.Biome$BiomeBuilder#build()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:313
  • Modifiers: public
  • Return: Biome

คืออะไร

สร้าง build

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: ClimateSettings(). สร้างออบเจ็กต์: Biome, Biome.ClimateSettings, IllegalStateException.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
Biome result = instance.build();

net.minecraft.world.level.biome.Biome$BiomeBuilder#downfall(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:288
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ downfall ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: downfall. คืนค่า: this.

Parameters

  • float f

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
Biome.BiomeBuilder result = instance.downfall(0.0F);

net.minecraft.world.level.biome.Biome$BiomeBuilder#generationSettings(BiomeGenerationSettings)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:303
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ generationSettings ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: generationSettings. คืนค่า: this.

Parameters

  • BiomeGenerationSettings biomeGenerationSettings

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
BiomeGenerationSettings biomeGenerationSettings = ...;
Biome.BiomeBuilder result = instance.generationSettings(biomeGenerationSettings);

net.minecraft.world.level.biome.Biome$BiomeBuilder#hasPrecipitation(boolean)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:278
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ตรวจสอบว่ามี Precipitation

ทำงานยังไง

แก้ state: hasPrecipitation. คืนค่า: this.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
Biome.BiomeBuilder result = instance.hasPrecipitation(true);

net.minecraft.world.level.biome.Biome$BiomeBuilder#mobSpawnSettings(MobSpawnSettings)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:298
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ mobSpawnSettings ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: mobSpawnSettings. คืนค่า: this.

Parameters

  • MobSpawnSettings mobSpawnSettings

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
MobSpawnSettings mobSpawnSettings = ...;
Biome.BiomeBuilder result = instance.mobSpawnSettings(mobSpawnSettings);

net.minecraft.world.level.biome.Biome$BiomeBuilder#specialEffects(BiomeSpecialEffects)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:293
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ specialEffects ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: specialEffects. คืนค่า: this.

Parameters

  • BiomeSpecialEffects biomeSpecialEffects

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
BiomeSpecialEffects biomeSpecialEffects = ...;
Biome.BiomeBuilder result = instance.specialEffects(biomeSpecialEffects);

net.minecraft.world.level.biome.Biome$BiomeBuilder#temperature(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:283
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ temperature ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: temperature. คืนค่า: this.

Parameters

  • float f

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
Biome.BiomeBuilder result = instance.temperature(0.0F);

net.minecraft.world.level.biome.Biome$BiomeBuilder#temperatureAdjustment(Biome.TemperatureModifier)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:308
  • Modifiers: public
  • Return: Biome.BiomeBuilder

คืออะไร

ดำเนินการ temperatureAdjustment ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

แก้ state: temperatureModifier. คืนค่า: this.

Parameters

  • Biome.TemperatureModifier temperatureModifier

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
Biome.TemperatureModifier temperatureModifier = ...;
Biome.BiomeBuilder result = instance.temperatureAdjustment(temperatureModifier);

net.minecraft.world.level.biome.Biome$BiomeBuilder#toString()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:326
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ Biome$BiomeBuilder

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome.BiomeBuilder instance = ...;
String result = instance.toString();

Biome$Precipitation

  • Full name: net.minecraft.world.level.biome.Biome$Precipitation
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Biome.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.biome.Biome$Precipitation#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:372
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome.Precipitation instance = ...;
String result = instance.getSerializedName();

Biome$TemperatureModifier

  • Full name: net.minecraft.world.level.biome.Biome$TemperatureModifier
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Biome.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.biome.Biome$TemperatureModifier#getName()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:411
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome.TemperatureModifier instance = ...;
String result = instance.getName();

net.minecraft.world.level.biome.Biome$TemperatureModifier#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:415
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Biome.TemperatureModifier instance = ...;
String result = instance.getSerializedName();

net.minecraft.world.level.biome.Biome$TemperatureModifier#modifyTemperature(BlockPos,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Biome.java:405
  • Modifiers: public abstract
  • Return: float

คืออะไร

ดำเนินการ modifyTemperature ตาม implementation ของ Biome$TemperatureModifier

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • BlockPos blockPos
  • float f

ตัวอย่างใช้งาน

Biome.TemperatureModifier instance = ...;
BlockPos blockPos = ...;
float result = instance.modifyTemperature(blockPos, 0.0F);

BiomeGenerationSettings

  • Full name: net.minecraft.world.level.biome.BiomeGenerationSettings
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeGenerationSettings.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.BiomeGenerationSettings#features()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:69
  • Modifiers: public
  • Return: List<HolderSet<PlacedFeature>>

คืออะไร

ดำเนินการ features ตาม implementation ของ BiomeGenerationSettings

ทำงานยังไง

คืนค่า: this.features.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeGenerationSettings instance = ...;
List<HolderSet<PlacedFeature>> result = instance.features();

net.minecraft.world.level.biome.BiomeGenerationSettings#getCarvers()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:61
  • Modifiers: public
  • Return: Iterable<Holder<ConfiguredWorldCarver<?>>>

คืออะไร

อ่านค่า Carvers

ทำงานยังไง

คืนค่า: this.carvers.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeGenerationSettings instance = ...;
Iterable<Holder<ConfiguredWorldCarver<?>>> result = instance.getCarvers();

net.minecraft.world.level.biome.BiomeGenerationSettings#getFlowerFeatures()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:65
  • Modifiers: public
  • Return: List<ConfiguredFeature<?, ?>>

คืออะไร

อ่านค่า Flower Features

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.flowerFeatures.get().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeGenerationSettings instance = ...;
List<ConfiguredFeature<?, ?>> result = instance.getFlowerFeatures();

net.minecraft.world.level.biome.BiomeGenerationSettings#hasFeature(PlacedFeature)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:73
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Feature

ทำงานยังไง

เรียกต่อ: get(), contains(). คืนค่า: this.featureSet.get().contains(placedFeature).

Parameters

  • PlacedFeature placedFeature

ตัวอย่างใช้งาน

BiomeGenerationSettings instance = ...;
PlacedFeature placedFeature = ...;
boolean result = instance.hasFeature(placedFeature);

BiomeGenerationSettings$Builder

  • Full name: net.minecraft.world.level.biome.BiomeGenerationSettings$Builder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeGenerationSettings.java
  • Type: class
  • Modifiers: public static
  • Extends: BiomeGenerationSettings.PlainBuilder

net.minecraft.world.level.biome.BiomeGenerationSettings$Builder#addCarver(ResourceKey<ConfiguredWorldCarver<?>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:91
  • Modifiers: public
  • Return: BiomeGenerationSettings.Builder

คืออะไร

เพิ่ม Carver

ทำงานยังไง

เรียกต่อ: getOrThrow(). คืนค่า: this.

Parameters

  • ResourceKey<ConfiguredWorldCarver<?>> resourceKey

ตัวอย่างใช้งาน

BiomeGenerationSettings.Builder instance = ...;
ResourceKey<ConfiguredWorldCarver<?>> resourceKey = ...;
BiomeGenerationSettings.Builder result = instance.addCarver(resourceKey);

net.minecraft.world.level.biome.BiomeGenerationSettings$Builder#addFeature(GenerationStep.Decoration,ResourceKey<PlacedFeature>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:86
  • Modifiers: public
  • Return: BiomeGenerationSettings.Builder

คืออะไร

เพิ่ม Feature

ทำงานยังไง

เรียกต่อ: ordinal(), getOrThrow(). คืนค่า: this.

Parameters

  • GenerationStep.Decoration decoration
  • ResourceKey<PlacedFeature> resourceKey

ตัวอย่างใช้งาน

BiomeGenerationSettings.Builder instance = ...;
GenerationStep.Decoration decoration = ...;
ResourceKey<PlacedFeature> resourceKey = ...;
BiomeGenerationSettings.Builder result = instance.addFeature(decoration, resourceKey);

net.minecraft.world.level.biome.BiomeGenerationSettings$Builder#Builder(HolderGetter<PlacedFeature>,HolderGetter<ConfiguredWorldCarver<?>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:81
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BiomeGenerationSettings.Builder ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: placedFeatures, worldCarvers.

Parameters

  • HolderGetter<PlacedFeature> holderGetter
  • HolderGetter<ConfiguredWorldCarver<?>> holderGetter2

ตัวอย่างใช้งาน

HolderGetter<PlacedFeature> holderGetter = ...;
HolderGetter<ConfiguredWorldCarver<?>> holderGetter2 = ...;
BiomeGenerationSettings.Builder instance = new BiomeGenerationSettings.Builder(holderGetter, holderGetter2);

BiomeGenerationSettings$PlainBuilder

  • Full name: net.minecraft.world.level.biome.BiomeGenerationSettings$PlainBuilder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeGenerationSettings.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.biome.BiomeGenerationSettings$PlainBuilder#addCarver(Holder<ConfiguredWorldCarver<?>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:111
  • Modifiers: public
  • Return: BiomeGenerationSettings.PlainBuilder

คืออะไร

เพิ่ม Carver

ทำงานยังไง

เรียกต่อ: add(). คืนค่า: this.

Parameters

  • Holder<ConfiguredWorldCarver<?>> holder

ตัวอย่างใช้งาน

BiomeGenerationSettings.PlainBuilder instance = ...;
Holder<ConfiguredWorldCarver<?>> holder = ...;
BiomeGenerationSettings.PlainBuilder result = instance.addCarver(holder);

net.minecraft.world.level.biome.BiomeGenerationSettings$PlainBuilder#addFeature(GenerationStep.Decoration,Holder<PlacedFeature>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:101
  • Modifiers: public
  • Return: BiomeGenerationSettings.PlainBuilder

คืออะไร

เพิ่ม Feature

ทำงานยังไง

เรียกต่อ: ordinal(). คืนค่า: this.addFeature(decoration.ordinal(), holder).

Parameters

  • GenerationStep.Decoration decoration
  • Holder<PlacedFeature> holder

ตัวอย่างใช้งาน

BiomeGenerationSettings.PlainBuilder instance = ...;
GenerationStep.Decoration decoration = ...;
Holder<PlacedFeature> holder = ...;
BiomeGenerationSettings.PlainBuilder result = instance.addFeature(decoration, holder);

net.minecraft.world.level.biome.BiomeGenerationSettings$PlainBuilder#addFeature(int,Holder<PlacedFeature>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:105
  • Modifiers: public
  • Return: BiomeGenerationSettings.PlainBuilder

คืออะไร

เพิ่ม Feature

ทำงานยังไง

เรียกต่อ: addFeatureStepsUpTo(), get(), add(). คืนค่า: this.

Parameters

  • int i
  • Holder<PlacedFeature> holder

ตัวอย่างใช้งาน

BiomeGenerationSettings.PlainBuilder instance = ...;
Holder<PlacedFeature> holder = ...;
BiomeGenerationSettings.PlainBuilder result = instance.addFeature(0, holder);

net.minecraft.world.level.biome.BiomeGenerationSettings$PlainBuilder#build()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeGenerationSettings.java:122
  • Modifiers: public
  • Return: BiomeGenerationSettings

คืออะไร

สร้าง build

ทำงานยังไง

เรียกต่อ: direct(), stream(), map(), collect(), toImmutableList(). สร้างออบเจ็กต์: BiomeGenerationSettings. คืนค่า: new BiomeGenerationSettings(HolderSet.direct(this.carvers), this.features.stream().map(HolderSet::direct).collect(ImmutableList.toImmutableList())).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeGenerationSettings.PlainBuilder instance = ...;
BiomeGenerationSettings result = instance.build();

BiomeManager

  • Full name: net.minecraft.world.level.biome.BiomeManager
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeManager.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.BiomeManager#BiomeManager(BiomeManager.NoiseBiomeSource,long)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BiomeManager ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: noiseBiomeSource, biomeZoomSeed.

Parameters

  • BiomeManager.NoiseBiomeSource noiseBiomeSource
  • long l

ตัวอย่างใช้งาน

BiomeManager.NoiseBiomeSource noiseBiomeSource = ...;
BiomeManager instance = new BiomeManager(noiseBiomeSource, 0L);

net.minecraft.world.level.biome.BiomeManager#getBiome(BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:31
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Biome

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getX(), getY(), getZ(), getFiddledDistance(), getNoiseBiome(). คืนค่า: this.noiseBiomeSource.getNoiseBiome(p, w, x).

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

BiomeManager instance = ...;
BlockPos blockPos = ...;
Holder<Biome> result = instance.getBiome(blockPos);

net.minecraft.world.level.biome.BiomeManager#getNoiseBiomeAtPosition(BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:74
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome At Position

ทำงานยังไง

เรียกต่อ: fromBlock(), getX(), getY(), getZ(), getNoiseBiomeAtQuart(). คืนค่า: this.getNoiseBiomeAtQuart(i, j, k).

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

BiomeManager instance = ...;
BlockPos blockPos = ...;
Holder<Biome> result = instance.getNoiseBiomeAtPosition(blockPos);

net.minecraft.world.level.biome.BiomeManager#getNoiseBiomeAtPosition(double,double,double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:67
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome At Position

ทำงานยังไง

เรียกต่อ: fromBlock(), floor(), getNoiseBiomeAtQuart(). คืนค่า: this.getNoiseBiomeAtQuart(i, j, k).

Parameters

  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

BiomeManager instance = ...;
Holder<Biome> result = instance.getNoiseBiomeAtPosition(0.0D, 0.0D, 0.0D);

net.minecraft.world.level.biome.BiomeManager#getNoiseBiomeAtQuart(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:81
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome At Quart

ทำงานยังไง

เรียกต่อ: getNoiseBiome(). คืนค่า: this.noiseBiomeSource.getNoiseBiome(i, j, k).

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

BiomeManager instance = ...;
Holder<Biome> result = instance.getNoiseBiomeAtQuart(0, 0, 0);

net.minecraft.world.level.biome.BiomeManager#obfuscateSeed(long)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:23
  • Modifiers: public static
  • Return: long

คืออะไร

ดำเนินการ obfuscateSeed ตาม implementation ของ BiomeManager

ทำงานยังไง

เรียกต่อ: sha256(), hashLong(), asLong(). คืนค่า: Hashing.sha256().hashLong(l).asLong().

Parameters

  • long l

ตัวอย่างใช้งาน

long result = BiomeManager.obfuscateSeed(0L);

net.minecraft.world.level.biome.BiomeManager#withDifferentSource(BiomeManager.NoiseBiomeSource)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:27
  • Modifiers: public
  • Return: BiomeManager

คืออะไร

ดำเนินการ withDifferentSource ตาม implementation ของ BiomeManager

ทำงานยังไง

สร้างออบเจ็กต์: BiomeManager. คืนค่า: new BiomeManager(noiseBiomeSource, this.biomeZoomSeed).

Parameters

  • BiomeManager.NoiseBiomeSource noiseBiomeSource

ตัวอย่างใช้งาน

BiomeManager instance = ...;
BiomeManager.NoiseBiomeSource noiseBiomeSource = ...;
BiomeManager result = instance.withDifferentSource(noiseBiomeSource);

BiomeManager$NoiseBiomeSource

  • Full name: net.minecraft.world.level.biome.BiomeManager$NoiseBiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeManager.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.biome.BiomeManager$NoiseBiomeSource#getNoiseBiome(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeManager.java:107
  • Modifiers: ``
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

BiomeManager.NoiseBiomeSource instance = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0);

BiomeResolver

  • Full name: net.minecraft.world.level.biome.BiomeResolver
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeResolver.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.biome.BiomeResolver#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeResolver.java:6
  • Modifiers: ``
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeResolver instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);

BiomeSource

  • Full name: net.minecraft.world.level.biome.BiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeSource.java
  • Type: class
  • Modifiers: public abstract
  • Implements: BiomeResolver

net.minecraft.world.level.biome.BiomeSource#addDebugInfo(List<String>,BlockPos,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:159
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Debug Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • List<String> list
  • BlockPos blockPos
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeSource instance = ...;
List<String> list = ...;
BlockPos blockPos = ...;
Climate.Sampler sampler = ...;
instance.addDebugInfo(list, blockPos, sampler);

net.minecraft.world.level.biome.BiomeSource#BiomeSource()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:33
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BiomeSource ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSource instance = new BiomeSource();

net.minecraft.world.level.biome.BiomeSource#codec()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:36
  • Modifiers: protected abstract
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ codec ตาม implementation ของ BiomeSource

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected MapCodec<? extends BiomeSource> codec() {
    return super.codec();
}

net.minecraft.world.level.biome.BiomeSource#collectPossibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:38
  • Modifiers: protected abstract
  • Return: Stream<Holder<Biome>>

คืออะไร

ดำเนินการ collectPossibleBiomes ตาม implementation ของ BiomeSource

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Stream<Holder<Biome>> collectPossibleBiomes() {
    return super.collectPossibleBiomes();
}

net.minecraft.world.level.biome.BiomeSource#findBiomeHorizontal(int,int,int,int,int,Predicate<Holder<Biome>>,RandomSource,boolean,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:107
  • Modifiers: public
  • Return: Pair<BlockPos, Holder<Biome>>

คืออะไร

ค้นหา Biome Horizontal

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: fromBlock(), abs(), getNoiseBiome(), test(), nextInt(), toBlock(), of(). สร้างออบเจ็กต์: BlockPos. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • Predicate<Holder<Biome>> predicate
  • RandomSource randomSource
  • boolean bl
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeSource instance = ...;
Predicate<Holder<Biome>> predicate = ...;
RandomSource randomSource = ...;
Climate.Sampler sampler = ...;
Pair<BlockPos, Holder<Biome>> result = instance.findBiomeHorizontal(0, 0, 0, 0, 0, predicate, randomSource, true, sampler);

net.minecraft.world.level.biome.BiomeSource#findBiomeHorizontal(int,int,int,int,Predicate<Holder<Biome>>,RandomSource,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:70
  • Modifiers: public
  • Return: Pair<BlockPos, Holder<Biome>>

คืออะไร

ค้นหา Biome Horizontal

ทำงานยังไง

คืนค่า: this.findBiomeHorizontal(i, j, k, l, 1, predicate, randomSource, false, sampler).

Parameters

  • int i
  • int j
  • int k
  • int l
  • Predicate<Holder<Biome>> predicate
  • RandomSource randomSource
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeSource instance = ...;
Predicate<Holder<Biome>> predicate = ...;
RandomSource randomSource = ...;
Climate.Sampler sampler = ...;
Pair<BlockPos, Holder<Biome>> result = instance.findBiomeHorizontal(0, 0, 0, 0, predicate, randomSource, sampler);

net.minecraft.world.level.biome.BiomeSource#findClosestBiome3d(BlockPos,int,int,int,Predicate<Holder<Biome>>,Climate.Sampler,LevelReader)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:77
  • Modifiers: public
  • Return: Pair<BlockPos, Holder<Biome>>

คืออะไร

ค้นหา Closest Biome3d

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: possibleBiomes(), stream(), filter(), collect(), toUnmodifiableSet(), isEmpty(), floorDiv(), outFromOrigin(). สร้างออบเจ็กต์: BlockPos. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • BlockPos blockPos
  • int i
  • int j
  • int k
  • Predicate<Holder<Biome>> predicate
  • Climate.Sampler sampler
  • LevelReader levelReader

ตัวอย่างใช้งาน

BiomeSource instance = ...;
BlockPos blockPos = ...;
Predicate<Holder<Biome>> predicate = ...;
Climate.Sampler sampler = ...;
LevelReader levelReader = ...;
Pair<BlockPos, Holder<Biome>> result = instance.findClosestBiome3d(blockPos, 0, 0, 0, predicate, sampler, levelReader);

net.minecraft.world.level.biome.BiomeSource#getBiomesWithin(int,int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:44
  • Modifiers: public
  • Return: Set<Holder<Biome>>

คืออะไร

อ่านค่า Biomes Within

ทำงานยังไง

มีการวนลูป. เรียกต่อ: fromBlock(), newHashSet(), add(), getNoiseBiome(). คืนค่า: set.

Parameters

  • int i
  • int j
  • int k
  • int l
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeSource instance = ...;
Climate.Sampler sampler = ...;
Set<Holder<Biome>> result = instance.getBiomesWithin(0, 0, 0, 0, sampler);

net.minecraft.world.level.biome.BiomeSource#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:156
  • Modifiers: public abstract
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

BiomeSource instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);

net.minecraft.world.level.biome.BiomeSource#possibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSource.java:40
  • Modifiers: public
  • Return: Set<Holder<Biome>>

คืออะไร

ดำเนินการ possibleBiomes ตาม implementation ของ BiomeSource

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.possibleBiomes.get().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSource instance = ...;
Set<Holder<Biome>> result = instance.possibleBiomes();

BiomeSources

  • Full name: net.minecraft.world.level.biome.BiomeSources
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeSources.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.BiomeSources#bootstrap(Registry<MapCodec<? extends BiomeSource>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSources.java:7
  • Modifiers: public static
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ BiomeSources

ทำงานยังไง

เรียกต่อ: register(). คืนค่า: Registry.register(registry, "the_end", TheEndBiomeSource.CODEC).

Parameters

  • Registry<MapCodec<? extends BiomeSource>> registry

ตัวอย่างใช้งาน

Registry<MapCodec<? extends BiomeSource>> registry = ...;
MapCodec<? extends BiomeSource> result = BiomeSources.bootstrap(registry);

BiomeSpecialEffects

  • Full name: net.minecraft.world.level.biome.BiomeSpecialEffects
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeSpecialEffects.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.BiomeSpecialEffects#getAmbientAdditionsSettings()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:121
  • Modifiers: public
  • Return: Optional<AmbientAdditionsSettings>

คืออะไร

อ่านค่า Ambient Additions Settings

ทำงานยังไง

คืนค่า: this.ambientAdditionsSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<AmbientAdditionsSettings> result = instance.getAmbientAdditionsSettings();

net.minecraft.world.level.biome.BiomeSpecialEffects#getAmbientLoopSoundEvent()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:113
  • Modifiers: public
  • Return: Optional<Holder<SoundEvent>>

คืออะไร

อ่านค่า Ambient Loop Sound Event

ทำงานยังไง

คืนค่า: this.ambientLoopSoundEvent.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<Holder<SoundEvent>> result = instance.getAmbientLoopSoundEvent();

net.minecraft.world.level.biome.BiomeSpecialEffects#getAmbientMoodSettings()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:117
  • Modifiers: public
  • Return: Optional<AmbientMoodSettings>

คืออะไร

อ่านค่า Ambient Mood Settings

ทำงานยังไง

คืนค่า: this.ambientMoodSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<AmbientMoodSettings> result = instance.getAmbientMoodSettings();

net.minecraft.world.level.biome.BiomeSpecialEffects#getAmbientParticleSettings()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:109
  • Modifiers: public
  • Return: Optional<AmbientParticleSettings>

คืออะไร

อ่านค่า Ambient Particle Settings

ทำงานยังไง

คืนค่า: this.ambientParticleSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<AmbientParticleSettings> result = instance.getAmbientParticleSettings();

net.minecraft.world.level.biome.BiomeSpecialEffects#getBackgroundMusic()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:125
  • Modifiers: public
  • Return: Optional<SimpleWeightedRandomList<Music>>

คืออะไร

อ่านค่า Background Music

ทำงานยังไง

คืนค่า: this.backgroundMusic.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<SimpleWeightedRandomList<Music>> result = instance.getBackgroundMusic();

net.minecraft.world.level.biome.BiomeSpecialEffects#getBackgroundMusicVolume()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:129
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Background Music Volume

ทำงานยังไง

คืนค่า: this.backgroundMusicVolume.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
float result = instance.getBackgroundMusicVolume();

net.minecraft.world.level.biome.BiomeSpecialEffects#getFogColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:81
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Fog Color

ทำงานยังไง

คืนค่า: this.fogColor.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
int result = instance.getFogColor();

net.minecraft.world.level.biome.BiomeSpecialEffects#getFoliageColorOverride()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:97
  • Modifiers: public
  • Return: Optional<Integer>

คืออะไร

อ่านค่า Foliage Color Override

ทำงานยังไง

คืนค่า: this.foliageColorOverride.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<Integer> result = instance.getFoliageColorOverride();

net.minecraft.world.level.biome.BiomeSpecialEffects#getGrassColorModifier()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:105
  • Modifiers: public
  • Return: BiomeSpecialEffects.GrassColorModifier

คืออะไร

อ่านค่า Grass Color Modifier

ทำงานยังไง

คืนค่า: this.grassColorModifier.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
BiomeSpecialEffects.GrassColorModifier result = instance.getGrassColorModifier();

net.minecraft.world.level.biome.BiomeSpecialEffects#getGrassColorOverride()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:101
  • Modifiers: public
  • Return: Optional<Integer>

คืออะไร

อ่านค่า Grass Color Override

ทำงานยังไง

คืนค่า: this.grassColorOverride.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
Optional<Integer> result = instance.getGrassColorOverride();

net.minecraft.world.level.biome.BiomeSpecialEffects#getSkyColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:93
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Sky Color

ทำงานยังไง

คืนค่า: this.skyColor.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
int result = instance.getSkyColor();

net.minecraft.world.level.biome.BiomeSpecialEffects#getWaterColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:85
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Water Color

ทำงานยังไง

คืนค่า: this.waterColor.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
int result = instance.getWaterColor();

net.minecraft.world.level.biome.BiomeSpecialEffects#getWaterFogColor()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:89
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Water Fog Color

ทำงานยังไง

คืนค่า: this.waterFogColor.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects instance = ...;
int result = instance.getWaterFogColor();

BiomeSpecialEffects$Builder

  • Full name: net.minecraft.world.level.biome.BiomeSpecialEffects$Builder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeSpecialEffects.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#ambientAdditionsSound(AmbientAdditionsSettings)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:198
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ ambientAdditionsSound ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: ambientAdditionsSettings. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • AmbientAdditionsSettings ambientAdditionsSettings

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
AmbientAdditionsSettings ambientAdditionsSettings = ...;
BiomeSpecialEffects.Builder result = instance.ambientAdditionsSound(ambientAdditionsSettings);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#ambientLoopSound(Holder<SoundEvent>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:188
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ ambientLoopSound ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: ambientLoopSoundEvent. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • Holder<SoundEvent> holder

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
Holder<SoundEvent> holder = ...;
BiomeSpecialEffects.Builder result = instance.ambientLoopSound(holder);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#ambientMoodSound(AmbientMoodSettings)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:193
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ ambientMoodSound ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: ambientMoodSettings. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • AmbientMoodSettings ambientMoodSettings

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
AmbientMoodSettings ambientMoodSettings = ...;
BiomeSpecialEffects.Builder result = instance.ambientMoodSound(ambientMoodSettings);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#ambientParticle(AmbientParticleSettings)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:183
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ ambientParticle ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: ambientParticle. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • AmbientParticleSettings ambientParticleSettings

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
AmbientParticleSettings ambientParticleSettings = ...;
BiomeSpecialEffects.Builder result = instance.ambientParticle(ambientParticleSettings);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#backgroundMusic(Music)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:203
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ backgroundMusic ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: backgroundMusic. เรียกต่อ: empty(), of(), single(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Music music

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
Music music = ...;
BiomeSpecialEffects.Builder result = instance.backgroundMusic(music);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#backgroundMusic(SimpleWeightedRandomList<Music>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:217
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ backgroundMusic ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: backgroundMusic. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • SimpleWeightedRandomList<Music> simpleWeightedRandomList

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
SimpleWeightedRandomList<Music> simpleWeightedRandomList = ...;
BiomeSpecialEffects.Builder result = instance.backgroundMusic(simpleWeightedRandomList);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#backgroundMusicVolume(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:222
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ backgroundMusicVolume ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: backgroundMusicVolume. คืนค่า: this.

Parameters

  • float f

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.backgroundMusicVolume(0.0F);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#build()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:227
  • Modifiers: public
  • Return: BiomeSpecialEffects

คืออะไร

สร้าง build

ทำงานยังไง

เรียกต่อ: orElseThrow(). สร้างออบเจ็กต์: BiomeSpecialEffects, IllegalStateException.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects result = instance.build();

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#fogColor(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:148
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ fogColor ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: fogColor. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.fogColor(0);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#foliageColorOverride(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:168
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ foliageColorOverride ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: foliageColorOverride. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.foliageColorOverride(0);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#grassColorModifier(BiomeSpecialEffects.GrassColorModifier)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:178
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ grassColorModifier ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: grassColorModifier. คืนค่า: this.

Parameters

  • BiomeSpecialEffects.GrassColorModifier grassColorModifier

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.GrassColorModifier grassColorModifier = ...;
BiomeSpecialEffects.Builder result = instance.grassColorModifier(grassColorModifier);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#grassColorOverride(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:173
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ grassColorOverride ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: grassColorOverride. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.grassColorOverride(0);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#silenceAllBackgroundMusic()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:213
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ silenceAllBackgroundMusic ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

เรียกต่อ: backgroundMusic(), empty(), backgroundMusicVolume(). คืนค่า: this.backgroundMusic(SimpleWeightedRandomList.empty()).backgroundMusicVolume(0.0F).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.silenceAllBackgroundMusic();

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#skyColor(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:163
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ skyColor ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: skyColor. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.skyColor(0);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#waterColor(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:153
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ waterColor ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: waterColor. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.waterColor(0);

net.minecraft.world.level.biome.BiomeSpecialEffects$Builder#waterFogColor(int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:158
  • Modifiers: public
  • Return: BiomeSpecialEffects.Builder

คืออะไร

ดำเนินการ waterFogColor ตาม implementation ของ BiomeSpecialEffects$Builder

ทำงานยังไง

แก้ state: waterFogColor. เรียกต่อ: of(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.Builder instance = ...;
BiomeSpecialEffects.Builder result = instance.waterFogColor(0);

BiomeSpecialEffects$GrassColorModifier

  • Full name: net.minecraft.world.level.biome.BiomeSpecialEffects$GrassColorModifier
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/BiomeSpecialEffects.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.biome.BiomeSpecialEffects$GrassColorModifier#getName()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:276
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects.GrassColorModifier instance = ...;
String result = instance.getName();

net.minecraft.world.level.biome.BiomeSpecialEffects$GrassColorModifier#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:280
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BiomeSpecialEffects.GrassColorModifier instance = ...;
String result = instance.getSerializedName();

net.minecraft.world.level.biome.BiomeSpecialEffects$GrassColorModifier#modifyColor(double,double,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/BiomeSpecialEffects.java:270
  • Modifiers: public abstract
  • Return: int

คืออะไร

ดำเนินการ modifyColor ตาม implementation ของ BiomeSpecialEffects$GrassColorModifier

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • double d
  • double e
  • int i

ตัวอย่างใช้งาน

BiomeSpecialEffects.GrassColorModifier instance = ...;
int result = instance.modifyColor(0.0D, 0.0D, 0);

CheckerboardColumnBiomeSource

  • Full name: net.minecraft.world.level.biome.CheckerboardColumnBiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/CheckerboardColumnBiomeSource.java
  • Type: class
  • Modifiers: public
  • Extends: BiomeSource

net.minecraft.world.level.biome.CheckerboardColumnBiomeSource#CheckerboardColumnBiomeSource(HolderSet<Biome>,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/CheckerboardColumnBiomeSource.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ CheckerboardColumnBiomeSource ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: allowedBiomes, bitShift, size.

Parameters

  • HolderSet<Biome> holderSet
  • int i

ตัวอย่างใช้งาน

HolderSet<Biome> holderSet = ...;
CheckerboardColumnBiomeSource instance = new CheckerboardColumnBiomeSource(holderSet, 0);

net.minecraft.world.level.biome.CheckerboardColumnBiomeSource#codec()

  • Origin: common
  • Source: net/minecraft/world/level/biome/CheckerboardColumnBiomeSource.java:33
  • Modifiers: protected
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ codec ตาม implementation ของ CheckerboardColumnBiomeSource

ทำงานยังไง

คืนค่า: CODEC.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected MapCodec<? extends BiomeSource> codec() {
    return super.codec();
}

net.minecraft.world.level.biome.CheckerboardColumnBiomeSource#collectPossibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/CheckerboardColumnBiomeSource.java:28
  • Modifiers: protected
  • Return: Stream<Holder<Biome>>

คืออะไร

ดำเนินการ collectPossibleBiomes ตาม implementation ของ CheckerboardColumnBiomeSource

ทำงานยังไง

เรียกต่อ: stream(). คืนค่า: this.allowedBiomes.stream().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Stream<Holder<Biome>> collectPossibleBiomes() {
    return super.collectPossibleBiomes();
}

net.minecraft.world.level.biome.CheckerboardColumnBiomeSource#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/CheckerboardColumnBiomeSource.java:38
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

เรียกต่อ: get(), floorMod(), size(). คืนค่า: this.allowedBiomes.get(Math.floorMod((i >> this.bitShift) + (k >> this.bitShift), this.allowedBiomes.size())).

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

CheckerboardColumnBiomeSource instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);

Climate

  • Full name: net.minecraft.world.level.biome.Climate
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.Climate#empty()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:68
  • Modifiers: public static
  • Return: Climate.Sampler

คืออะไร

ดำเนินการ empty ตาม implementation ของ Climate

ทำงานยังไง

เรียกต่อ: zero(), Sampler(), of(). สร้างออบเจ็กต์: Climate.Sampler. คืนค่า: new Climate.Sampler(densityFunction, densityFunction, densityFunction, densityFunction, densityFunction, densityFunction, List.of()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Climate.Sampler result = Climate.empty();

net.minecraft.world.level.biome.Climate#findSpawnPosition(List<Climate.ParameterPoint>,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:73
  • Modifiers: public static
  • Return: BlockPos

คืออะไร

ค้นหา Spawn Position

ทำงานยังไง

เรียกต่อ: SpawnFinder(), location(). สร้างออบเจ็กต์: Climate.SpawnFinder. คืนค่า: (new Climate.SpawnFinder(list, sampler)).result.location().

Parameters

  • List<Climate.ParameterPoint> list
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

List<Climate.ParameterPoint> list = ...;
Climate.Sampler sampler = ...;
BlockPos result = Climate.findSpawnPosition(list, sampler);

net.minecraft.world.level.biome.Climate#parameters(Climate.Parameter,Climate.Parameter,Climate.Parameter,Climate.Parameter,Climate.Parameter,Climate.Parameter,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:48
  • Modifiers: public static
  • Return: Climate.ParameterPoint

คืออะไร

ดำเนินการ parameters ตาม implementation ของ Climate

ทำงานยังไง

เรียกต่อ: ParameterPoint(), quantizeCoord(). สร้างออบเจ็กต์: Climate.ParameterPoint. คืนค่า: new Climate.ParameterPoint(parameter, parameter2, parameter3, parameter4, parameter5, parameter6, quantizeCoord(f)).

Parameters

  • Climate.Parameter parameter
  • Climate.Parameter parameter2
  • Climate.Parameter parameter3
  • Climate.Parameter parameter4
  • Climate.Parameter parameter5
  • Climate.Parameter parameter6
  • float f

ตัวอย่างใช้งาน

Climate.Parameter parameter = ...;
Climate.Parameter parameter2 = ...;
Climate.Parameter parameter3 = ...;
Climate.Parameter parameter4 = ...;
Climate.Parameter parameter5 = ...;
Climate.Parameter parameter6 = ...;
Climate.ParameterPoint result = Climate.parameters(parameter, parameter2, parameter3, parameter4, parameter5, parameter6, 0.0F);

net.minecraft.world.level.biome.Climate#parameters(float,float,float,float,float,float,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:36
  • Modifiers: public static
  • Return: Climate.ParameterPoint

คืออะไร

ดำเนินการ parameters ตาม implementation ของ Climate

ทำงานยังไง

เรียกต่อ: ParameterPoint(), point(), quantizeCoord(). สร้างออบเจ็กต์: Climate.ParameterPoint.

Parameters

  • float f
  • float g
  • float h
  • float i
  • float j
  • float k
  • float l

ตัวอย่างใช้งาน

Climate.ParameterPoint result = Climate.parameters(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F);

net.minecraft.world.level.biome.Climate#quantizeCoord(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:60
  • Modifiers: public static
  • Return: long

คืออะไร

ดำเนินการ quantizeCoord ตาม implementation ของ Climate

ทำงานยังไง

คืนค่า: (long)(f * 10000.0F).

Parameters

  • float f

ตัวอย่างใช้งาน

long result = Climate.quantizeCoord(0.0F);

net.minecraft.world.level.biome.Climate#target(float,float,float,float,float,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:32
  • Modifiers: public static
  • Return: Climate.TargetPoint

คืออะไร

ดำเนินการ target ตาม implementation ของ Climate

ทำงานยังไง

เรียกต่อ: TargetPoint(), quantizeCoord(). สร้างออบเจ็กต์: Climate.TargetPoint. คืนค่า: new Climate.TargetPoint(quantizeCoord(f), quantizeCoord(g), quantizeCoord(h), quantizeCoord(i), quantizeCoord(j), quantizeCoord(k)).

Parameters

  • float f
  • float g
  • float h
  • float i
  • float j
  • float k

ตัวอย่างใช้งาน

Climate.TargetPoint result = Climate.target(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F);

net.minecraft.world.level.biome.Climate#unquantizeCoord(long)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:64
  • Modifiers: public static
  • Return: float

คืออะไร

ดำเนินการ unquantizeCoord ตาม implementation ของ Climate

ทำงานยังไง

คืนค่า: (float)l / 10000.0F.

Parameters

  • long l

ตัวอย่างใช้งาน

float result = Climate.unquantizeCoord(0L);

Climate$Parameter

  • Full name: net.minecraft.world.level.biome.Climate$Parameter
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.biome.Climate$Parameter#distance(Climate.Parameter)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:124
  • Modifiers: public
  • Return: long

คืออะไร

ดำเนินการ distance ตาม implementation ของ Climate$Parameter

ทำงานยังไง

เรียกต่อ: min(), max(). คืนค่า: l > 0L ? l : Math.max(m, 0L).

Parameters

  • Climate.Parameter parameter

ตัวอย่างใช้งาน

Climate.Parameter instance = ...;
Climate.Parameter parameter = ...;
long result = instance.distance(parameter);

net.minecraft.world.level.biome.Climate$Parameter#distance(long)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:118
  • Modifiers: public
  • Return: long

คืออะไร

ดำเนินการ distance ตาม implementation ของ Climate$Parameter

ทำงานยังไง

เรียกต่อ: max(). คืนค่า: m > 0L ? m : Math.max(n, 0L).

Parameters

  • long l

ตัวอย่างใช้งาน

Climate.Parameter instance = ...;
long result = instance.distance(0L);

net.minecraft.world.level.biome.Climate$Parameter#point(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:93
  • Modifiers: public static
  • Return: Climate.Parameter

คืออะไร

ดำเนินการ point ตาม implementation ของ Climate$Parameter

ทำงานยังไง

เรียกต่อ: span(). คืนค่า: span(f, f).

Parameters

  • float f

ตัวอย่างใช้งาน

Climate.Parameter result = Climate.Parameter.point(0.0F);

net.minecraft.world.level.biome.Climate$Parameter#span(Climate.Parameter)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:130
  • Modifiers: public
  • Return: Climate.Parameter

คืออะไร

ดำเนินการ span ตาม implementation ของ Climate$Parameter

ทำงานยังไง

เรียกต่อ: Parameter(), min(), max(). สร้างออบเจ็กต์: Climate.Parameter. คืนค่า: parameter == null ? this : new Climate.Parameter(Math.min(this.min, parameter.min()), Math.max(this.max, parameter.max())).

Parameters

  • Climate.Parameter parameter

ตัวอย่างใช้งาน

Climate.Parameter instance = ...;
Climate.Parameter parameter = ...;
Climate.Parameter result = instance.span(parameter);

net.minecraft.world.level.biome.Climate$Parameter#span(Climate.Parameter,Climate.Parameter)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:105
  • Modifiers: public static
  • Return: Climate.Parameter

คืออะไร

ดำเนินการ span ตาม implementation ของ Climate$Parameter

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: min(), max(), Parameter(). สร้างออบเจ็กต์: IllegalArgumentException, Climate.Parameter. คืนค่า: new Climate.Parameter(parameter.min(), parameter2.max()).

Parameters

  • Climate.Parameter parameter
  • Climate.Parameter parameter2

ตัวอย่างใช้งาน

Climate.Parameter parameter = ...;
Climate.Parameter parameter2 = ...;
Climate.Parameter result = Climate.Parameter.span(parameter, parameter2);

net.minecraft.world.level.biome.Climate$Parameter#span(float,float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:97
  • Modifiers: public static
  • Return: Climate.Parameter

คืออะไร

ดำเนินการ span ตาม implementation ของ Climate$Parameter

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: Parameter(), quantizeCoord(). สร้างออบเจ็กต์: IllegalArgumentException, Climate.Parameter. คืนค่า: new Climate.Parameter(Climate.quantizeCoord(f), Climate.quantizeCoord(g)).

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

Climate.Parameter result = Climate.Parameter.span(0.0F, 0.0F);

net.minecraft.world.level.biome.Climate$Parameter#toString()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:113
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ Climate$Parameter

ทำงานยังไง

แก้ state: min. เรียกต่อ: format(). คืนค่า: this.min == this.max ? String.format(Locale.ROOT, "%d", this.min) : String.format(Locale.ROOT, "[%d-%d]", this.min, this.max).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Climate.Parameter instance = ...;
String result = instance.toString();

Climate$ParameterList

  • Full name: net.minecraft.world.level.biome.Climate$ParameterList
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.biome.Climate$ParameterList#codec(MapCodec<T>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:139
  • Modifiers: public static
  • Return: Codec<Climate.ParameterList<T>>

คืออะไร

ดำเนินการ codec ตาม implementation ของ Climate$ParameterList

ทำงานยังไง

เรียกต่อ: nonEmptyList(), create(), group(), fieldOf(), forGetter(), apply(), listOf(), xmap().

Parameters

  • MapCodec<T> mapCodec

ตัวอย่างใช้งาน

MapCodec<T> mapCodec = ...;
Codec<Climate.ParameterList<T>> result = Climate.ParameterList.codec(mapCodec);

net.minecraft.world.level.biome.Climate$ParameterList#findValue(Climate.TargetPoint)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:159
  • Modifiers: public
  • Return: T

คืออะไร

ค้นหา Value

ทำงานยังไง

เรียกต่อ: findValueIndex(). คืนค่า: this.findValueIndex(targetPoint).

Parameters

  • Climate.TargetPoint targetPoint

ตัวอย่างใช้งาน

Climate.ParameterList instance = ...;
Climate.TargetPoint targetPoint = ...;
T result = instance.findValue(targetPoint);

net.minecraft.world.level.biome.Climate$ParameterList#findValueBruteForce(Climate.TargetPoint)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:163
  • Modifiers: public
  • Return: T

คืออะไร

ค้นหา Value Brute Force

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: values(), iterator(), next(), getFirst(), fitness(), getSecond(), hasNext(). คืนค่า: object.

Parameters

  • Climate.TargetPoint targetPoint

ตัวอย่างใช้งาน

Climate.ParameterList instance = ...;
Climate.TargetPoint targetPoint = ...;
T result = instance.findValueBruteForce(targetPoint);

net.minecraft.world.level.biome.Climate$ParameterList#findValueIndex(Climate.TargetPoint)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:182
  • Modifiers: public
  • Return: T

คืออะไร

ค้นหา Value Index

ทำงานยังไง

คืนค่า: this.findValueIndex(targetPoint, Climate.RTree.Node::distance).

Parameters

  • Climate.TargetPoint targetPoint

ตัวอย่างใช้งาน

Climate.ParameterList instance = ...;
Climate.TargetPoint targetPoint = ...;
T result = instance.findValueIndex(targetPoint);

net.minecraft.world.level.biome.Climate$ParameterList#findValueIndex(Climate.TargetPoint,Climate.DistanceMetric<T>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:186
  • Modifiers: protected
  • Return: T

คืออะไร

ค้นหา Value Index

ทำงานยังไง

เรียกต่อ: search(). คืนค่า: this.index.search(targetPoint, distanceMetric).

Parameters

  • Climate.TargetPoint targetPoint
  • Climate.DistanceMetric<T> distanceMetric

ตัวอย่างใช้งาน

Climate.TargetPoint targetPoint = ...;
Climate.DistanceMetric<T> distanceMetric = ...;
@Override
protected T findValueIndex(Climate.TargetPoint targetPoint, Climate.DistanceMetric<T> distanceMetric) {
    return super.findValueIndex(targetPoint, distanceMetric);
}

net.minecraft.world.level.biome.Climate$ParameterList#ParameterList(List<Pair<Climate.ParameterPoint, T>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:150
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Climate.ParameterList ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: values, index. เรียกต่อ: create().

Parameters

  • List<Pair<Climate.ParameterPoint, T>> list

ตัวอย่างใช้งาน

List<Pair<Climate.ParameterPoint, T>> list = ...;
Climate.ParameterList instance = new Climate.ParameterList(list);

net.minecraft.world.level.biome.Climate$ParameterList#values()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:155
  • Modifiers: public
  • Return: List<Pair<Climate.ParameterPoint, T>>

คืออะไร

ดำเนินการ values ตาม implementation ของ Climate$ParameterList

ทำงานยังไง

คืนค่า: this.values.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Climate.ParameterList instance = ...;
List<Pair<Climate.ParameterPoint, T>> result = instance.values();

Climate$ParameterPoint

  • Full name: net.minecraft.world.level.biome.Climate$ParameterPoint
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.biome.Climate$ParameterPoint#parameterSpace()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:223
  • Modifiers: protected
  • Return: List<Climate.Parameter>

คืออะไร

ดำเนินการ parameterSpace ตาม implementation ของ Climate$ParameterPoint

ทำงานยังไง

เรียกต่อ: of(), Parameter(). สร้างออบเจ็กต์: Climate.Parameter.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected List<Climate.Parameter> parameterSpace() {
    return super.parameterSpace();
}

Climate$RTree

  • Full name: net.minecraft.world.level.biome.Climate$RTree
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: class
  • Modifiers: protected static final

net.minecraft.world.level.biome.Climate$RTree#create(List<Pair<Climate.ParameterPoint, T>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:239
  • Modifiers: public static
  • Return: Climate.RTree<T>

คืออะไร

สร้าง create

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), get(), getFirst(), parameterSpace(), size(), stream(), map(), Leaf(). สร้างออบเจ็กต์: IllegalArgumentException, IllegalStateException, Climate.RTree.Leaf, Climate.RTree<>. คืนค่า: new Climate.RTree<>(build(i, list2)).

Parameters

  • List<Pair<Climate.ParameterPoint, T>> list

ตัวอย่างใช้งาน

List<Pair<Climate.ParameterPoint, T>> list = ...;
Climate.RTree<T> result = Climate.RTree.create(list);

net.minecraft.world.level.biome.Climate$RTree#search(Climate.TargetPoint,Climate.DistanceMetric<T>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:371
  • Modifiers: public
  • Return: T

คืออะไร

ค้นหา search

ทำงานยังไง

เรียกต่อ: toParameterArray(), get(), set(). คืนค่า: leaf.value.

Parameters

  • Climate.TargetPoint targetPoint
  • Climate.DistanceMetric<T> distanceMetric

ตัวอย่างใช้งาน

Climate.RTree instance = ...;
Climate.TargetPoint targetPoint = ...;
Climate.DistanceMetric<T> distanceMetric = ...;
T result = instance.search(targetPoint, distanceMetric);

Climate$Sampler

  • Full name: net.minecraft.world.level.biome.Climate$Sampler
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.biome.Climate$Sampler#findSpawnPosition()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:475
  • Modifiers: public
  • Return: BlockPos

คืออะไร

ค้นหา Spawn Position

ทำงานยังไง

เรียกต่อ: isEmpty(). คืนค่า: this.spawnTarget.isEmpty() ? BlockPos.ZERO : Climate.findSpawnPosition(this.spawnTarget, this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Climate.Sampler instance = ...;
BlockPos result = instance.findSpawnPosition();

net.minecraft.world.level.biome.Climate$Sampler#sample(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:460
  • Modifiers: public
  • Return: Climate.TargetPoint

คืออะไร

ดำเนินการ sample ตาม implementation ของ Climate$Sampler

ทำงานยังไง

เรียกต่อ: toBlock(), SinglePointContext(), target(), compute(). สร้างออบเจ็กต์: DensityFunction.SinglePointContext.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

Climate.Sampler instance = ...;
Climate.TargetPoint result = instance.sample(0, 0, 0);

Climate$TargetPoint

  • Full name: net.minecraft.world.level.biome.Climate$TargetPoint
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/Climate.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.biome.Climate$TargetPoint#toParameterArray()

  • Origin: common
  • Source: net/minecraft/world/level/biome/Climate.java:533
  • Modifiers: protected
  • Return: long[]

คืออะไร

ดำเนินการ toParameterArray ตาม implementation ของ Climate$TargetPoint

ทำงานยังไง

คืนค่า: new long[]{this.temperature, this.humidity, this.continentalness, this.erosion, this.depth, this.weirdness, 0L}.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected long[] toParameterArray() {
    return super.toParameterArray();
}

FeatureSorter

  • Full name: net.minecraft.world.level.biome.FeatureSorter
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/FeatureSorter.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.FeatureSorter#buildFeaturesPerStep(List<T>,Function<T, List<HolderSet<PlacedFeature>>>,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FeatureSorter.java:28
  • Modifiers: public static
  • Return: List<FeatureSorter.StepFeatureData>

คืออะไร

สร้าง Features Per Step

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: FeatureData(), comparingInt(), thenComparingInt(), newArrayList(), apply(), max(), size(), get(). สร้างออบเจ็กต์: Object2IntOpenHashMap<>, MutableInt, TreeMap<>, FeatureData. คืนค่า: builder.build().

Parameters

  • List<T> list
  • Function<T, List<HolderSet<PlacedFeature>>> function
  • boolean bl

ตัวอย่างใช้งาน

List<T> list = ...;
Function<T, List<HolderSet<PlacedFeature>>> function = ...;
List<FeatureSorter.StepFeatureData> result = FeatureSorter.buildFeaturesPerStep(list, function, true);

FixedBiomeSource

  • Full name: net.minecraft.world.level.biome.FixedBiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/FixedBiomeSource.java
  • Type: class
  • Modifiers: public
  • Extends: BiomeSource
  • Implements: BiomeManager.NoiseBiomeSource

net.minecraft.world.level.biome.FixedBiomeSource#codec()

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:31
  • Modifiers: protected
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ codec ตาม implementation ของ FixedBiomeSource

ทำงานยังไง

คืนค่า: CODEC.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected MapCodec<? extends BiomeSource> codec() {
    return super.codec();
}

net.minecraft.world.level.biome.FixedBiomeSource#collectPossibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:26
  • Modifiers: protected
  • Return: Stream<Holder<Biome>>

คืออะไร

ดำเนินการ collectPossibleBiomes ตาม implementation ของ FixedBiomeSource

ทำงานยังไง

เรียกต่อ: of(). คืนค่า: Stream.of(this.biome).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Stream<Holder<Biome>> collectPossibleBiomes() {
    return super.collectPossibleBiomes();
}

net.minecraft.world.level.biome.FixedBiomeSource#findBiomeHorizontal(int,int,int,int,int,Predicate<Holder<Biome>>,RandomSource,boolean,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:46
  • Modifiers: public
  • Return: Pair<BlockPos, Holder<Biome>>

คืออะไร

ค้นหา Biome Horizontal

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: test(), of(), nextInt(). สร้างออบเจ็กต์: BlockPos. คืนค่า: null.

Parameters

  • int i
  • int j
  • int k
  • int l
  • int m
  • Predicate<Holder<Biome>> predicate
  • RandomSource randomSource
  • boolean bl
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

FixedBiomeSource instance = ...;
Predicate<Holder<Biome>> predicate = ...;
RandomSource randomSource = ...;
Climate.Sampler sampler = ...;
Pair<BlockPos, Holder<Biome>> result = instance.findBiomeHorizontal(0, 0, 0, 0, 0, predicate, randomSource, true, sampler);

net.minecraft.world.level.biome.FixedBiomeSource#findClosestBiome3d(BlockPos,int,int,int,Predicate<Holder<Biome>>,Climate.Sampler,LevelReader)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:60
  • Modifiers: public
  • Return: Pair<BlockPos, Holder<Biome>>

คืออะไร

ค้นหา Closest Biome3d

ทำงานยังไง

เรียกต่อ: test(), of(). คืนค่า: predicate.test(this.biome) ? Pair.of(blockPos, this.biome) : null.

Parameters

  • BlockPos blockPos
  • int i
  • int j
  • int k
  • Predicate<Holder<Biome>> predicate
  • Climate.Sampler sampler
  • LevelReader levelReader

ตัวอย่างใช้งาน

FixedBiomeSource instance = ...;
BlockPos blockPos = ...;
Predicate<Holder<Biome>> predicate = ...;
Climate.Sampler sampler = ...;
LevelReader levelReader = ...;
Pair<BlockPos, Holder<Biome>> result = instance.findClosestBiome3d(blockPos, 0, 0, 0, predicate, sampler, levelReader);

net.minecraft.world.level.biome.FixedBiomeSource#FixedBiomeSource(Holder<Biome>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ FixedBiomeSource ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: biome.

Parameters

  • Holder<Biome> holder

ตัวอย่างใช้งาน

Holder<Biome> holder = ...;
FixedBiomeSource instance = new FixedBiomeSource(holder);

net.minecraft.world.level.biome.FixedBiomeSource#getBiomesWithin(int,int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:68
  • Modifiers: public
  • Return: Set<Holder<Biome>>

คืออะไร

อ่านค่า Biomes Within

ทำงานยังไง

เรียกต่อ: newHashSet(), of(). คืนค่า: Sets.newHashSet(Set.of(this.biome)).

Parameters

  • int i
  • int j
  • int k
  • int l
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

FixedBiomeSource instance = ...;
Climate.Sampler sampler = ...;
Set<Holder<Biome>> result = instance.getBiomesWithin(0, 0, 0, 0, sampler);

net.minecraft.world.level.biome.FixedBiomeSource#getNoiseBiome(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:41
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

คืนค่า: this.biome.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

FixedBiomeSource instance = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0);

net.minecraft.world.level.biome.FixedBiomeSource#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/FixedBiomeSource.java:36
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

คืนค่า: this.biome.

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

FixedBiomeSource instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);

MobSpawnSettings

  • Full name: net.minecraft.world.level.biome.MobSpawnSettings
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MobSpawnSettings.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.MobSpawnSettings#getCreatureProbability()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:69
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Creature Probability

ทำงานยังไง

คืนค่า: this.creatureGenerationProbability.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MobSpawnSettings instance = ...;
float result = instance.getCreatureProbability();

net.minecraft.world.level.biome.MobSpawnSettings#getMobs(MobCategory)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:60
  • Modifiers: public
  • Return: WeightedRandomList<MobSpawnSettings.SpawnerData>

คืออะไร

อ่านค่า Mobs

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.spawners.getOrDefault(mobCategory, EMPTY_MOB_LIST).

Parameters

  • MobCategory mobCategory

ตัวอย่างใช้งาน

MobSpawnSettings instance = ...;
MobCategory mobCategory = ...;
WeightedRandomList<MobSpawnSettings.SpawnerData> result = instance.getMobs(mobCategory);

net.minecraft.world.level.biome.MobSpawnSettings#getMobSpawnCost(EntityType<?>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:64
  • Modifiers: public
  • Return: MobSpawnSettings.MobSpawnCost

คืออะไร

อ่านค่า Mob Spawn Cost

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.mobSpawnCosts.get(entityType).

Parameters

  • EntityType<?> entityType

ตัวอย่างใช้งาน

MobSpawnSettings instance = ...;
EntityType<?> entityType = ...;
MobSpawnSettings.MobSpawnCost result = instance.getMobSpawnCost(entityType);

MobSpawnSettings$Builder

  • Full name: net.minecraft.world.level.biome.MobSpawnSettings$Builder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MobSpawnSettings.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.biome.MobSpawnSettings$Builder#addMobCharge(EntityType<?>,double,double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:84
  • Modifiers: public
  • Return: MobSpawnSettings.Builder

คืออะไร

เพิ่ม Mob Charge

ทำงานยังไง

เรียกต่อ: put(), MobSpawnCost(). สร้างออบเจ็กต์: MobSpawnSettings.MobSpawnCost. คืนค่า: this.

Parameters

  • EntityType<?> entityType
  • double d
  • double e

ตัวอย่างใช้งาน

MobSpawnSettings.Builder instance = ...;
EntityType<?> entityType = ...;
MobSpawnSettings.Builder result = instance.addMobCharge(entityType, 0.0D, 0.0D);

net.minecraft.world.level.biome.MobSpawnSettings$Builder#addSpawn(MobCategory,MobSpawnSettings.SpawnerData)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:79
  • Modifiers: public
  • Return: MobSpawnSettings.Builder

คืออะไร

เพิ่ม Spawn

ทำงานยังไง

เรียกต่อ: get(), add(). คืนค่า: this.

Parameters

  • MobCategory mobCategory
  • MobSpawnSettings.SpawnerData spawnerData

ตัวอย่างใช้งาน

MobSpawnSettings.Builder instance = ...;
MobCategory mobCategory = ...;
MobSpawnSettings.SpawnerData spawnerData = ...;
MobSpawnSettings.Builder result = instance.addSpawn(mobCategory, spawnerData);

net.minecraft.world.level.biome.MobSpawnSettings$Builder#build()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:94
  • Modifiers: public
  • Return: MobSpawnSettings

คืออะไร

สร้าง build

ทำงานยังไง

เรียกต่อ: entrySet(), stream(), collect(), toImmutableMap(), create(), getValue(), copyOf(). สร้างออบเจ็กต์: MobSpawnSettings.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MobSpawnSettings.Builder instance = ...;
MobSpawnSettings result = instance.build();

net.minecraft.world.level.biome.MobSpawnSettings$Builder#creatureGenerationProbability(float)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:89
  • Modifiers: public
  • Return: MobSpawnSettings.Builder

คืออะไร

ดำเนินการ creatureGenerationProbability ตาม implementation ของ MobSpawnSettings$Builder

ทำงานยังไง

แก้ state: creatureGenerationProbability. คืนค่า: this.

Parameters

  • float f

ตัวอย่างใช้งาน

MobSpawnSettings.Builder instance = ...;
MobSpawnSettings.Builder result = instance.creatureGenerationProbability(0.0F);

MobSpawnSettings$SpawnerData

  • Full name: net.minecraft.world.level.biome.MobSpawnSettings$SpawnerData
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MobSpawnSettings.java
  • Type: class
  • Modifiers: public static
  • Extends: WeightedEntry.IntrusiveBase

net.minecraft.world.level.biome.MobSpawnSettings$SpawnerData#SpawnerData(EntityType<?>,int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:132
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MobSpawnSettings.SpawnerData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: of().

Parameters

  • EntityType<?> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

EntityType<?> entityType = ...;
MobSpawnSettings.SpawnerData instance = new MobSpawnSettings.SpawnerData(entityType, 0, 0, 0);

net.minecraft.world.level.biome.MobSpawnSettings$SpawnerData#SpawnerData(EntityType<?>,Weight,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:136
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MobSpawnSettings.SpawnerData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: type, minCount, maxCount. เรียกต่อ: getCategory().

Parameters

  • EntityType<?> entityType
  • Weight weight
  • int i
  • int j

ตัวอย่างใช้งาน

EntityType<?> entityType = ...;
Weight weight = ...;
MobSpawnSettings.SpawnerData instance = new MobSpawnSettings.SpawnerData(entityType, weight, 0, 0);

net.minecraft.world.level.biome.MobSpawnSettings$SpawnerData#toString()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MobSpawnSettings.java:143
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ MobSpawnSettings$SpawnerData

ทำงานยังไง

เรียกต่อ: getKey(), getWeight(). คืนค่า: EntityType.getKey(this.type) + "*(" + this.minCount + "-" + this.maxCount + "):" + this.getWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MobSpawnSettings.SpawnerData instance = ...;
String result = instance.toString();

MultiNoiseBiomeSource

  • Full name: net.minecraft.world.level.biome.MultiNoiseBiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MultiNoiseBiomeSource.java
  • Type: class
  • Modifiers: public
  • Extends: BiomeSource

net.minecraft.world.level.biome.MultiNoiseBiomeSource#addDebugInfo(List<String>,BlockPos,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:69
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Debug Info

ทำงานยังไง

เรียกต่อ: fromBlock(), getX(), getY(), getZ(), sample(), unquantizeCoord(), continentalness(), erosion(). สร้างออบเจ็กต์: OverworldBiomeBuilder.

Parameters

  • List<String> list
  • BlockPos blockPos
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

MultiNoiseBiomeSource instance = ...;
List<String> list = ...;
BlockPos blockPos = ...;
Climate.Sampler sampler = ...;
instance.addDebugInfo(list, blockPos, sampler);

net.minecraft.world.level.biome.MultiNoiseBiomeSource#codec()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:49
  • Modifiers: protected
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ codec ตาม implementation ของ MultiNoiseBiomeSource

ทำงานยังไง

คืนค่า: CODEC.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected MapCodec<? extends BiomeSource> codec() {
    return super.codec();
}

net.minecraft.world.level.biome.MultiNoiseBiomeSource#collectPossibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:44
  • Modifiers: protected
  • Return: Stream<Holder<Biome>>

คืออะไร

ดำเนินการ collectPossibleBiomes ตาม implementation ของ MultiNoiseBiomeSource

ทำงานยังไง

เรียกต่อ: parameters(), values(), stream(), map(). คืนค่า: this.parameters().values().stream().map(Pair::getSecond).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Stream<Holder<Biome>> collectPossibleBiomes() {
    return super.collectPossibleBiomes();
}

net.minecraft.world.level.biome.MultiNoiseBiomeSource#createFromList(Climate.ParameterList<Holder<Biome>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:32
  • Modifiers: public static
  • Return: MultiNoiseBiomeSource

คืออะไร

สร้าง From List

ทำงานยังไง

เรียกต่อ: left(). สร้างออบเจ็กต์: MultiNoiseBiomeSource. คืนค่า: new MultiNoiseBiomeSource(Either.left(parameterList)).

Parameters

  • Climate.ParameterList<Holder<Biome>> parameterList

ตัวอย่างใช้งาน

Climate.ParameterList<Holder<Biome>> parameterList = ...;
MultiNoiseBiomeSource result = MultiNoiseBiomeSource.createFromList(parameterList);

net.minecraft.world.level.biome.MultiNoiseBiomeSource#createFromPreset(Holder<MultiNoiseBiomeSourceParameterList>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:36
  • Modifiers: public static
  • Return: MultiNoiseBiomeSource

คืออะไร

สร้าง From Preset

ทำงานยังไง

เรียกต่อ: right(). สร้างออบเจ็กต์: MultiNoiseBiomeSource. คืนค่า: new MultiNoiseBiomeSource(Either.right(holder)).

Parameters

  • Holder<MultiNoiseBiomeSourceParameterList> holder

ตัวอย่างใช้งาน

Holder<MultiNoiseBiomeSourceParameterList> holder = ...;
MultiNoiseBiomeSource result = MultiNoiseBiomeSource.createFromPreset(holder);

net.minecraft.world.level.biome.MultiNoiseBiomeSource#getNoiseBiome(Climate.TargetPoint)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:64
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

เรียกต่อ: parameters(), findValue(). คืนค่า: this.parameters().findValue(targetPoint).

Parameters

  • Climate.TargetPoint targetPoint

ตัวอย่างใช้งาน

MultiNoiseBiomeSource instance = ...;
Climate.TargetPoint targetPoint = ...;
Holder<Biome> result = instance.getNoiseBiome(targetPoint);

net.minecraft.world.level.biome.MultiNoiseBiomeSource#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:59
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

เรียกต่อ: sample(). คืนค่า: this.getNoiseBiome(sampler.sample(i, j, k)).

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

MultiNoiseBiomeSource instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);

net.minecraft.world.level.biome.MultiNoiseBiomeSource#stable(ResourceKey<MultiNoiseBiomeSourceParameterList>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSource.java:54
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ stable ตาม implementation ของ MultiNoiseBiomeSource

ทำงานยังไง

เรียกต่อ: right(), isPresent(), get(), is(). คืนค่า: optional.isPresent() && optional.get().is(resourceKey).

Parameters

  • ResourceKey<MultiNoiseBiomeSourceParameterList> resourceKey

ตัวอย่างใช้งาน

MultiNoiseBiomeSource instance = ...;
ResourceKey<MultiNoiseBiomeSourceParameterList> resourceKey = ...;
boolean result = instance.stable(resourceKey);

MultiNoiseBiomeSourceParameterList

  • Full name: net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList#knownPresets()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java:48
  • Modifiers: public static
  • Return: Map<MultiNoiseBiomeSourceParameterList.Preset, Climate.ParameterList<ResourceKey<Biome>>>

คืออะไร

ดำเนินการ knownPresets ตาม implementation ของ MultiNoiseBiomeSourceParameterList

ทำงานยังไง

เรียกต่อ: values(), stream(), collect(), toMap(), provider(), apply().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Map<MultiNoiseBiomeSourceParameterList.Preset, Climate.ParameterList<ResourceKey<Biome>>> result = MultiNoiseBiomeSourceParameterList.knownPresets();

net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList#MultiNoiseBiomeSourceParameterList(MultiNoiseBiomeSourceParameterList.Preset,HolderGetter<Biome>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java:39
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MultiNoiseBiomeSourceParameterList ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: preset, parameters. เรียกต่อ: apply().

Parameters

  • MultiNoiseBiomeSourceParameterList.Preset preset
  • HolderGetter<Biome> holderGetter

ตัวอย่างใช้งาน

MultiNoiseBiomeSourceParameterList.Preset preset = ...;
HolderGetter<Biome> holderGetter = ...;
MultiNoiseBiomeSourceParameterList instance = new MultiNoiseBiomeSourceParameterList(preset, holderGetter);

net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList#parameters()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java:44
  • Modifiers: public
  • Return: Climate.ParameterList<Holder<Biome>>

คืออะไร

ดำเนินการ parameters ตาม implementation ของ MultiNoiseBiomeSourceParameterList

ทำงานยังไง

คืนค่า: this.parameters.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultiNoiseBiomeSourceParameterList instance = ...;
Climate.ParameterList<Holder<Biome>> result = instance.parameters();

MultiNoiseBiomeSourceParameterList$Preset

  • Full name: net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList$Preset
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java
  • Type: record
  • Modifiers: public

net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterList$Preset#usedBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList.java:97
  • Modifiers: public
  • Return: Stream<ResourceKey<Biome>>

คืออะไร

ดำเนินการ usedBiomes ตาม implementation ของ MultiNoiseBiomeSourceParameterList$Preset

ทำงานยังไง

เรียกต่อ: apply(), values(), stream(), map(), distinct(). คืนค่า: this.provider.apply(resourceKey -> resourceKey).values().stream().map(Pair::getSecond).distinct().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultiNoiseBiomeSourceParameterList.Preset instance = ...;
Stream<ResourceKey<Biome>> result = instance.usedBiomes();

MultiNoiseBiomeSourceParameterLists

  • Full name: net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterLists
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterLists.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.biome.MultiNoiseBiomeSourceParameterLists#bootstrap(BootstrapContext<MultiNoiseBiomeSourceParameterList>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterLists.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ bootstrap ตาม implementation ของ MultiNoiseBiomeSourceParameterLists

ทำงานยังไง

เรียกต่อ: lookup(), register(). สร้างออบเจ็กต์: MultiNoiseBiomeSourceParameterList.

Parameters

  • BootstrapContext<MultiNoiseBiomeSourceParameterList> bootstrapContext

ตัวอย่างใช้งาน

BootstrapContext<MultiNoiseBiomeSourceParameterList> bootstrapContext = ...;
MultiNoiseBiomeSourceParameterLists.bootstrap(bootstrapContext);

OverworldBiomeBuilder

  • Full name: net.minecraft.world.level.biome.OverworldBiomeBuilder
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/OverworldBiomeBuilder.java
  • Type: class
  • Modifiers: public final

net.minecraft.world.level.biome.OverworldBiomeBuilder#addBiomes(Consumer<Pair<Climate.ParameterPoint, ResourceKey<Biome>>>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:134
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Biomes

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: addDebugBiomes(), addOffCoastBiomes(), addInlandBiomes(), addUndergroundBiomes().

Parameters

  • Consumer<Pair<Climate.ParameterPoint, ResourceKey<Biome>>> consumer

ตัวอย่างใช้งาน

Consumer<Pair<Climate.ParameterPoint, ResourceKey<Biome>>> consumer = ...;
@Override
protected void addBiomes(Consumer<Pair<Climate.ParameterPoint, ResourceKey<Biome>>> consumer) {
    super.addBiomes(consumer);
}

net.minecraft.world.level.biome.OverworldBiomeBuilder#getContinentalnessThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:1014
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Continentalness Thresholds

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getContinentalnessThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#getDebugStringForContinentalness(double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:958
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Debug String For Continentalness

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: quantizeCoord(), max(). มีจุด return อย่างน้อย 6 จุด.

Parameters

  • double d

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
String result = instance.getDebugStringForContinentalness(0.0D);

net.minecraft.world.level.biome.OverworldBiomeBuilder#getDebugStringForErosion(double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:975
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Debug String For Erosion

ทำงานยังไง

เรียกต่อ: getDebugStringForNoiseValue(). คืนค่า: getDebugStringForNoiseValue(d, this.erosions).

Parameters

  • double d

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
String result = instance.getDebugStringForErosion(0.0D);

net.minecraft.world.level.biome.OverworldBiomeBuilder#getDebugStringForHumidity(double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:983
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Debug String For Humidity

ทำงานยังไง

เรียกต่อ: getDebugStringForNoiseValue(). คืนค่า: getDebugStringForNoiseValue(d, this.humidities).

Parameters

  • double d

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
String result = instance.getDebugStringForHumidity(0.0D);

net.minecraft.world.level.biome.OverworldBiomeBuilder#getDebugStringForPeaksAndValleys(double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:946
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Debug String For Peaks And Valleys

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: peaksAndValleys(). มีจุด return อย่างน้อย 4 จุด.

Parameters

  • double d

ตัวอย่างใช้งาน

String result = OverworldBiomeBuilder.getDebugStringForPeaksAndValleys(0.0D);

net.minecraft.world.level.biome.OverworldBiomeBuilder#getDebugStringForTemperature(double)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:979
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Debug String For Temperature

ทำงานยังไง

เรียกต่อ: getDebugStringForNoiseValue(). คืนค่า: getDebugStringForNoiseValue(d, this.temperatures).

Parameters

  • double d

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
String result = instance.getDebugStringForTemperature(0.0D);

net.minecraft.world.level.biome.OverworldBiomeBuilder#getErosionThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:1009
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Erosion Thresholds

ทำงานยังไง

คืนค่า: this.erosions.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getErosionThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#getHumidityThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:1004
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Humidity Thresholds

ทำงานยังไง

คืนค่า: this.humidities.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getHumidityThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#getPeaksAndValleysThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:1027
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Peaks And Valleys Thresholds

ทำงานยังไง

เรียกต่อ: span(), peaksAndValleys().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getPeaksAndValleysThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#getTemperatureThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:999
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Temperature Thresholds

ทำงานยังไง

คืนค่า: this.temperatures.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getTemperatureThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#getWeirdnessThresholds()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:1038
  • Modifiers: public
  • Return: Climate.Parameter[]

คืออะไร

อ่านค่า Weirdness Thresholds

ทำงานยังไง

เรียกต่อ: span(). คืนค่า: new Climate.Parameter[]{Climate.Parameter.span(-2.0F, 0.0F), Climate.Parameter.span(0.0F, 2.0F)}.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
Climate.Parameter[] result = instance.getWeirdnessThresholds();

net.minecraft.world.level.biome.OverworldBiomeBuilder#isDeepDarkRegion(DensityFunction,DensityFunction,DensityFunction.FunctionContext)

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:942
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Deep Dark Region

ทำงานยังไง

เรียกต่อ: compute(). คืนค่า: densityFunction.compute(functionContext) < -0.225F && densityFunction2.compute(functionContext) > 0.9F.

Parameters

  • DensityFunction densityFunction
  • DensityFunction densityFunction2
  • DensityFunction.FunctionContext functionContext

ตัวอย่างใช้งาน

DensityFunction densityFunction = ...;
DensityFunction densityFunction2 = ...;
DensityFunction.FunctionContext functionContext = ...;
boolean result = OverworldBiomeBuilder.isDeepDarkRegion(densityFunction, densityFunction2, functionContext);

net.minecraft.world.level.biome.OverworldBiomeBuilder#spawnTarget()

  • Origin: common
  • Source: net/minecraft/world/level/biome/OverworldBiomeBuilder.java:109
  • Modifiers: public
  • Return: List<Climate.ParameterPoint>

คืออะไร

สร้าง entity ในโลก Target

ทำงานยังไง

เรียกต่อ: point(), of(), ParameterPoint(), span(). สร้างออบเจ็กต์: Climate.ParameterPoint.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OverworldBiomeBuilder instance = ...;
List<Climate.ParameterPoint> result = instance.spawnTarget();

TheEndBiomeSource

  • Full name: net.minecraft.world.level.biome.TheEndBiomeSource
  • Package: net.minecraft.world.level.biome
  • Source: commonnet/minecraft/world/level/biome/TheEndBiomeSource.java
  • Type: class
  • Modifiers: public
  • Extends: BiomeSource

net.minecraft.world.level.biome.TheEndBiomeSource#codec()

  • Origin: common
  • Source: net/minecraft/world/level/biome/TheEndBiomeSource.java:53
  • Modifiers: protected
  • Return: MapCodec<? extends BiomeSource>

คืออะไร

ดำเนินการ codec ตาม implementation ของ TheEndBiomeSource

ทำงานยังไง

คืนค่า: CODEC.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected MapCodec<? extends BiomeSource> codec() {
    return super.codec();
}

net.minecraft.world.level.biome.TheEndBiomeSource#collectPossibleBiomes()

  • Origin: common
  • Source: net/minecraft/world/level/biome/TheEndBiomeSource.java:48
  • Modifiers: protected
  • Return: Stream<Holder<Biome>>

คืออะไร

ดำเนินการ collectPossibleBiomes ตาม implementation ของ TheEndBiomeSource

ทำงานยังไง

เรียกต่อ: of(). คืนค่า: Stream.of(this.end, this.highlands, this.midlands, this.islands, this.barrens).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Stream<Holder<Biome>> collectPossibleBiomes() {
    return super.collectPossibleBiomes();
}

net.minecraft.world.level.biome.TheEndBiomeSource#create(HolderGetter<Biome>)

  • Origin: common
  • Source: net/minecraft/world/level/biome/TheEndBiomeSource.java:30
  • Modifiers: public static
  • Return: TheEndBiomeSource

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: getOrThrow(). สร้างออบเจ็กต์: TheEndBiomeSource.

Parameters

  • HolderGetter<Biome> holderGetter

ตัวอย่างใช้งาน

HolderGetter<Biome> holderGetter = ...;
TheEndBiomeSource result = TheEndBiomeSource.create(holderGetter);

net.minecraft.world.level.biome.TheEndBiomeSource#getNoiseBiome(int,int,int,Climate.Sampler)

  • Origin: common
  • Source: net/minecraft/world/level/biome/TheEndBiomeSource.java:58
  • Modifiers: public
  • Return: Holder<Biome>

คืออะไร

อ่านค่า Noise Biome

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: toBlock(), blockToSectionCoord(), erosion(), compute(), SinglePointContext(). สร้างออบเจ็กต์: DensityFunction.SinglePointContext. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • int i
  • int j
  • int k
  • Climate.Sampler sampler

ตัวอย่างใช้งาน

TheEndBiomeSource instance = ...;
Climate.Sampler sampler = ...;
Holder<Biome> result = instance.getNoiseBiome(0, 0, 0, sampler);