Skip to content

Package net.minecraft.world.level.levelgen.blending

Part 1/1


Blender

  • Full name: net.minecraft.world.level.levelgen.blending.Blender
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/Blender.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.blending.Blender#addAroundOldChunksCarvingMaskFilter(WorldGenLevel,ProtoChunk)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:306
  • Modifiers: public static
  • Return: void

คืออะไร

เพิ่ม Around Old Chunks Carving Mask Filter

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPos(), builder(), values(), getStepX(), getStepZ(), getChunk(), getBlendingData(), put(). คืนค่า: distanceGetter.getDistance(d, e, f) < 4.0.

Parameters

  • WorldGenLevel worldGenLevel
  • ProtoChunk protoChunk

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

WorldGenLevel worldGenLevel = ...;
ProtoChunk protoChunk = ...;
Blender.addAroundOldChunksCarvingMaskFilter(worldGenLevel, protoChunk);

net.minecraft.world.level.levelgen.blending.Blender#blendDensity(DensityFunction.FunctionContext,double)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:151
  • Modifiers: public
  • Return: double

คืออะไร

ดำเนินการ blendDensity ตาม implementation ของ Blender

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: fromBlock(), blockX(), blockY(), blockZ(), getBlendingDataValue(), forEach(), iterateDensities(), fromSection(). สร้างออบเจ็กต์: MutableDouble. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • DensityFunction.FunctionContext functionContext
  • double d

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

Blender instance = ...;
DensityFunction.FunctionContext functionContext = ...;
double result = instance.blendDensity(functionContext, 0.0D);

net.minecraft.world.level.levelgen.blending.Blender#blendOffsetAndFactor(int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:106
  • Modifiers: public
  • Return: Blender.BlendingOutput

คืออะไร

ดำเนินการ blendOffsetAndFactor ตาม implementation ของ Blender

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: fromBlock(), getBlendingDataValue(), BlendingOutput(), heightToOffset(), forEach(), iterateHeights(), fromSection(), getX(). สร้างออบเจ็กต์: Blender.BlendingOutput, MutableDouble. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • int i
  • int j

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

Blender instance = ...;
Blender.BlendingOutput result = instance.blendOffsetAndFactor(0, 0);

net.minecraft.world.level.levelgen.blending.Blender#empty()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:61
  • Modifiers: public static
  • Return: Blender

คืออะไร

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

ทำงานยังไง

คืนค่า: EMPTY.

Parameters

  • ไม่มี

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

Blender result = Blender.empty();

net.minecraft.world.level.levelgen.blending.Blender#generateBorderTicks(WorldGenRegion,ChunkAccess)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:253
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ generateBorderTicks ตาม implementation ของ Blender

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPos(), isOldNoiseGeneration(), MutableBlockPos(), getMinBlockX(), getMinBlockZ(), getBlendingData(), getAreaWithOldGeneration(), getMinY(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos, BlockPos.

Parameters

  • WorldGenRegion worldGenRegion
  • ChunkAccess chunkAccess

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

WorldGenRegion worldGenRegion = ...;
ChunkAccess chunkAccess = ...;
Blender.generateBorderTicks(worldGenRegion, chunkAccess);

net.minecraft.world.level.levelgen.blending.Blender#getBiomeResolver(BiomeResolver)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:219
  • Modifiers: public
  • Return: BiomeResolver

คืออะไร

อ่านค่า Biome Resolver

ทำงานยังไง

เรียกต่อ: blendBiome(), getNoiseBiome(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • BiomeResolver biomeResolver

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

Blender instance = ...;
BiomeResolver biomeResolver = ...;
BiomeResolver result = instance.getBiomeResolver(biomeResolver);

net.minecraft.world.level.levelgen.blending.Blender#makeOldChunkDistanceGetter(BlendingData,Map<Direction8, BlendingData>)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:332
  • Modifiers: public static
  • Return: Blender.DistanceGetter

คืออะไร

สร้าง Old Chunk Distance Getter

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: newArrayList(), add(), makeOffsetOldChunkDistanceGetter(), forEach(), getDistance(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • BlendingData blendingData
  • Map<Direction8, BlendingData> map

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

BlendingData blendingData = ...;
Map<Direction8, BlendingData> map = ...;
Blender.DistanceGetter result = Blender.makeOldChunkDistanceGetter(blendingData, map);

net.minecraft.world.level.levelgen.blending.Blender#of(WorldGenRegion)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:65
  • Modifiers: public static
  • Return: Blender

คืออะไร

ดำเนินการ of ตาม implementation ของ Blender

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getCenter(), isOldChunkAround(), square(), getOrUpdateBlendingData(), put(), asLong(), isEmpty(). สร้างออบเจ็กต์: Long2ObjectOpenHashMap<>, Blender. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • WorldGenRegion worldGenRegion

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

WorldGenRegion worldGenRegion = ...;
Blender result = Blender.of(worldGenRegion);

Blender$DistanceGetter

  • Full name: net.minecraft.world.level.levelgen.blending.Blender$DistanceGetter
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/Blender.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.levelgen.blending.Blender$DistanceGetter#getDistance(double,double,double)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/Blender.java:385
  • Modifiers: ``
  • Return: double

คืออะไร

อ่านค่า Distance

ทำงานยังไง

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

Parameters

  • double d
  • double e
  • double f

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

Blender.DistanceGetter instance = ...;
double result = instance.getDistance(0.0D, 0.0D, 0.0D);

BlendingData

  • Full name: net.minecraft.world.level.levelgen.blending.BlendingData
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/BlendingData.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.blending.BlendingData#getAreaWithOldGeneration()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:386
  • Modifiers: public
  • Return: LevelHeightAccessor

คืออะไร

อ่านค่า Area With Old Generation

ทำงานยังไง

คืนค่า: this.areaWithOldGeneration.

Parameters

  • ไม่มี

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

BlendingData instance = ...;
LevelHeightAccessor result = instance.getAreaWithOldGeneration();

net.minecraft.world.level.levelgen.blending.BlendingData#getDensity(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:284
  • Modifiers: protected
  • Return: double

คืออะไร

อ่านค่า Density

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getMinY(), getOutsideIndex(), getInsideIndex(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • int i
  • int j
  • int k

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

@Override
protected double getDensity(int i, int j, int k) {
    return super.getDensity(i, j, k);
}

net.minecraft.world.level.levelgen.blending.BlendingData#getHeight(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:267
  • Modifiers: protected
  • Return: double

คืออะไร

อ่านค่า Height

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

@Override
protected double getHeight(int i, int j, int k) {
    return super.getHeight(i, j, k);
}

net.minecraft.world.level.levelgen.blending.BlendingData#getOrUpdateBlendingData(WorldGenRegion,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:102
  • Modifiers: public static
  • Return: BlendingData

คืออะไร

อ่านค่า Or Update Blending Data

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getChunk(), getBlendingData(), getHighestGeneratedStatus(), isBefore(), calculateData(), sideByGenerationAge(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • WorldGenRegion worldGenRegion
  • int i
  • int j

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

WorldGenRegion worldGenRegion = ...;
BlendingData result = BlendingData.getOrUpdateBlendingData(worldGenRegion, 0, 0);

net.minecraft.world.level.levelgen.blending.BlendingData#iterateBiomes(int,int,int,BlendingData.BiomeConsumer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:294
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ iterateBiomes ตาม implementation ของ BlendingData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: fromBlock(), getMinY(), getMaxY(), size(), get(), consume(), getX(), getZ().

Parameters

  • int i
  • int j
  • int k
  • BlendingData.BiomeConsumer biomeConsumer

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

BlendingData.BiomeConsumer biomeConsumer = ...;
@Override
protected void iterateBiomes(int i, int j, int k, BlendingData.BiomeConsumer biomeConsumer) {
    super.iterateBiomes(i, j, k, biomeConsumer);
}

net.minecraft.world.level.levelgen.blending.BlendingData#iterateDensities(int,int,int,int,BlendingData.DensityConsumer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:318
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ iterateDensities ตาม implementation ของ BlendingData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getColumnMinY(), max(), min(), cellCountPerColumn(), getX(), getZ(), consume().

Parameters

  • int i
  • int j
  • int k
  • int l
  • BlendingData.DensityConsumer densityConsumer

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

BlendingData.DensityConsumer densityConsumer = ...;
@Override
protected void iterateDensities(int i, int j, int k, int l, BlendingData.DensityConsumer densityConsumer) {
    super.iterateDensities(i, j, k, l, densityConsumer);
}

net.minecraft.world.level.levelgen.blending.BlendingData#iterateHeights(int,int,BlendingData.HeightConsumer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:309
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ iterateHeights ตาม implementation ของ BlendingData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: consume(), getX(), getZ().

Parameters

  • int i
  • int j
  • BlendingData.HeightConsumer heightConsumer

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

BlendingData.HeightConsumer heightConsumer = ...;
@Override
protected void iterateHeights(int i, int j, BlendingData.HeightConsumer heightConsumer) {
    super.iterateHeights(i, j, heightConsumer);
}

net.minecraft.world.level.levelgen.blending.BlendingData#pack()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:85
  • Modifiers: public
  • Return: BlendingData.Packed

คืออะไร

ดำเนินการ pack ตาม implementation ของ BlendingData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: Packed(), getMinSectionY(), getMaxSectionY(), of(), copy(), empty(). สร้างออบเจ็กต์: BlendingData.Packed.

Parameters

  • ไม่มี

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

BlendingData instance = ...;
BlendingData.Packed result = instance.pack();

net.minecraft.world.level.levelgen.blending.BlendingData#sideByGenerationAge(WorldGenLevel,int,int,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:114
  • Modifiers: public static
  • Return: Set<Direction8>

คืออะไร

ดำเนินการ sideByGenerationAge ตาม implementation ของ BlendingData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: noneOf(), values(), getStepX(), getStepZ(), getChunk(), isOldNoiseGeneration(), add(). คืนค่า: set.

Parameters

  • WorldGenLevel worldGenLevel
  • int i
  • int j
  • boolean bl

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

WorldGenLevel worldGenLevel = ...;
Set<Direction8> result = BlendingData.sideByGenerationAge(worldGenLevel, 0, 0, true);

net.minecraft.world.level.levelgen.blending.BlendingData#unpack(BlendingData.Packed)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:80
  • Modifiers: public static
  • Return: BlendingData

คืออะไร

ดำเนินการ unpack ตาม implementation ของ BlendingData

ทำงานยังไง

เรียกต่อ: minSection(), maxSection(), heights(). สร้างออบเจ็กต์: BlendingData. คืนค่า: packed == null ? null : new BlendingData(packed.minSection(), packed.maxSection(), packed.heights()).

Parameters

  • BlendingData.Packed packed

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

BlendingData.Packed packed = ...;
BlendingData result = BlendingData.unpack(packed);

BlendingData$BiomeConsumer

  • Full name: net.minecraft.world.level.levelgen.blending.BlendingData$BiomeConsumer
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/BlendingData.java
  • Type: interface
  • Modifiers: protected

net.minecraft.world.level.levelgen.blending.BlendingData$BiomeConsumer#consume(int,int,Holder<Biome>)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:391
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ consume ตาม implementation ของ BlendingData$BiomeConsumer

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • Holder<Biome> holder

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

BlendingData.BiomeConsumer instance = ...;
Holder<Biome> holder = ...;
instance.consume(0, 0, holder);

BlendingData$DensityConsumer

  • Full name: net.minecraft.world.level.levelgen.blending.BlendingData$DensityConsumer
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/BlendingData.java
  • Type: interface
  • Modifiers: protected

net.minecraft.world.level.levelgen.blending.BlendingData$DensityConsumer#consume(int,int,int,double)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:395
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ consume ตาม implementation ของ BlendingData$DensityConsumer

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k
  • double d

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

BlendingData.DensityConsumer instance = ...;
instance.consume(0, 0, 0, 0.0D);

BlendingData$HeightConsumer

  • Full name: net.minecraft.world.level.levelgen.blending.BlendingData$HeightConsumer
  • Package: net.minecraft.world.level.levelgen.blending
  • Source: commonnet/minecraft/world/level/levelgen/blending/BlendingData.java
  • Type: interface
  • Modifiers: protected

net.minecraft.world.level.levelgen.blending.BlendingData$HeightConsumer#consume(int,int,double)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/blending/BlendingData.java:399
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ consume ตาม implementation ของ BlendingData$HeightConsumer

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • double d

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

BlendingData.HeightConsumer instance = ...;
instance.consume(0, 0, 0.0D);