Skip to content

Package net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity

Part 1/1


AppendLoot

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendLoot
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendLoot.java
  • Type: class
  • Modifiers: public
  • Implements: RuleBlockEntityModifier

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendLoot#AppendLoot(ResourceKey<LootTable>)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendLoot.java:23
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lootTable.

Parameters

  • ResourceKey<LootTable> resourceKey

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

ResourceKey<LootTable> resourceKey = ...;
AppendLoot instance = new AppendLoot(resourceKey);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendLoot#apply(RandomSource,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendLoot.java:27
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

นำไปใช้ apply

ทำงานยังไง

เรียกต่อ: copy(), codec(), encodeStart(), resultOrPartial(), ifPresent(), put(), putLong(), nextLong(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag2.

Parameters

  • RandomSource randomSource
  • CompoundTag compoundTag

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

AppendLoot instance = ...;
RandomSource randomSource = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.apply(randomSource, compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendLoot#getType()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendLoot.java:38
  • Modifiers: public
  • Return: RuleBlockEntityModifierType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: RuleBlockEntityModifierType.APPEND_LOOT.

Parameters

  • ไม่มี

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

AppendLoot instance = ...;
RuleBlockEntityModifierType<?> result = instance.getType();

AppendStatic

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendStatic
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendStatic.java
  • Type: class
  • Modifiers: public
  • Implements: RuleBlockEntityModifier

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendStatic#AppendStatic(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendStatic.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: tag.

Parameters

  • CompoundTag compoundTag

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

CompoundTag compoundTag = ...;
AppendStatic instance = new AppendStatic(compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendStatic#apply(RandomSource,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendStatic.java:19
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

นำไปใช้ apply

ทำงานยังไง

เรียกต่อ: copy(), merge(). คืนค่า: compoundTag == null ? this.tag.copy() : compoundTag.merge(this.tag).

Parameters

  • RandomSource randomSource
  • CompoundTag compoundTag

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

AppendStatic instance = ...;
RandomSource randomSource = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.apply(randomSource, compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendStatic#getType()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/AppendStatic.java:24
  • Modifiers: public
  • Return: RuleBlockEntityModifierType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: RuleBlockEntityModifierType.APPEND_STATIC.

Parameters

  • ไม่มี

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

AppendStatic instance = ...;
RuleBlockEntityModifierType<?> result = instance.getType();

Clear

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Clear
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Clear.java
  • Type: class
  • Modifiers: public
  • Implements: RuleBlockEntityModifier

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Clear#apply(RandomSource,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Clear.java:12
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

นำไปใช้ apply

ทำงานยังไง

สร้างออบเจ็กต์: CompoundTag. คืนค่า: new CompoundTag().

Parameters

  • RandomSource randomSource
  • CompoundTag compoundTag

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

Clear instance = ...;
RandomSource randomSource = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.apply(randomSource, compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Clear#getType()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Clear.java:17
  • Modifiers: public
  • Return: RuleBlockEntityModifierType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: RuleBlockEntityModifierType.CLEAR.

Parameters

  • ไม่มี

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

Clear instance = ...;
RuleBlockEntityModifierType<?> result = instance.getType();

Passthrough

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Passthrough
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Passthrough.java
  • Type: class
  • Modifiers: public
  • Implements: RuleBlockEntityModifier

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Passthrough#apply(RandomSource,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Passthrough.java:12
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

นำไปใช้ apply

ทำงานยังไง

คืนค่า: compoundTag.

Parameters

  • RandomSource randomSource
  • CompoundTag compoundTag

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

Passthrough instance = ...;
RandomSource randomSource = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.apply(randomSource, compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Passthrough#getType()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Passthrough.java:18
  • Modifiers: public
  • Return: RuleBlockEntityModifierType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: RuleBlockEntityModifierType.PASSTHROUGH.

Parameters

  • ไม่มี

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

Passthrough instance = ...;
RuleBlockEntityModifierType<?> result = instance.getType();

RuleBlockEntityModifier

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifier
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/RuleBlockEntityModifier.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifier#apply(RandomSource,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/RuleBlockEntityModifier.java:14
  • Modifiers: ``
  • Return: CompoundTag

คืออะไร

นำไปใช้ apply

ทำงานยังไง

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

Parameters

  • RandomSource randomSource
  • CompoundTag compoundTag

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

RuleBlockEntityModifier instance = ...;
RandomSource randomSource = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.apply(randomSource, compoundTag);

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifier#getType()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/RuleBlockEntityModifier.java:17
  • Modifiers: ``
  • Return: RuleBlockEntityModifierType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RuleBlockEntityModifier instance = ...;
RuleBlockEntityModifierType<?> result = instance.getType();

RuleBlockEntityModifierType

  • Full name: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifierType
  • Package: net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
  • Source: commonnet/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/RuleBlockEntityModifierType.java
  • Type: interface
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifierType#codec()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/RuleBlockEntityModifierType.java:13
  • Modifiers: ``
  • Return: MapCodec<P>

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RuleBlockEntityModifierType instance = ...;
MapCodec<P> result = instance.codec();