Package net.minecraft.world.level.storage.loot.entries
Part 1/1
AlternativesEntry
- Full name:
net.minecraft.world.level.storage.loot.entries.AlternativesEntry - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java - Type:
class - Modifiers:
public - Extends:
CompositeEntryBase
net.minecraft.world.level.storage.loot.entries.AlternativesEntry#alternatives(Collection<E>,Function<E, LootPoolEntryContainer.Builder<?>>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:56 - Modifiers:
public static - Return:
AlternativesEntry.Builder
คืออะไร
ดำเนินการ alternatives ตาม implementation ของ AlternativesEntry
ทำงานยังไง
เรียกต่อ: Builder(), stream(), map(), toArray(). สร้างออบเจ็กต์: AlternativesEntry.Builder. คืนค่า: new AlternativesEntry.Builder(collection.stream().map(function::apply).toArray(LootPoolEntryContainer.Builder[]::new)).
Parameters
Collection<E> collectionFunction<E, LootPoolEntryContainer.Builder<?>> function
ตัวอย่างใช้งาน
Collection<E> collection = ...;
Function<E, LootPoolEntryContainer.Builder<?>> function = ...;
AlternativesEntry.Builder result = AlternativesEntry.alternatives(collection, function);
net.minecraft.world.level.storage.loot.entries.AlternativesEntry#alternatives(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:52 - Modifiers:
public static - Return:
AlternativesEntry.Builder
คืออะไร
ดำเนินการ alternatives ตาม implementation ของ AlternativesEntry
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: AlternativesEntry.Builder. คืนค่า: new AlternativesEntry.Builder(builders).
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
AlternativesEntry.Builder result = AlternativesEntry.alternatives(builders);
net.minecraft.world.level.storage.loot.entries.AlternativesEntry#compose(List<? extends ComposableEntryContainer>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:23 - Modifiers:
protected - Return:
ComposableEntryContainer
คืออะไร
ดำเนินการ compose ตาม implementation ของ AlternativesEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: size(), get(), or(), expand(). มีจุด return อย่างน้อย 3 จุด.
Parameters
List<? extends ComposableEntryContainer> list
ตัวอย่างใช้งาน
List<? extends ComposableEntryContainer> list = ...;
@Override
protected ComposableEntryContainer compose(List<? extends ComposableEntryContainer> list) {
return super.compose(list);
}
net.minecraft.world.level.storage.loot.entries.AlternativesEntry#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:18 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.ALTERNATIVES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.AlternativesEntry#validate(ValidationContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:41 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), isEmpty(), reportProblem().
Parameters
ValidationContext validationContext
ตัวอย่างใช้งาน
AlternativesEntry instance = ...;
ValidationContext validationContext = ...;
instance.validate(validationContext);
AlternativesEntry$Builder
- Full name:
net.minecraft.world.level.storage.loot.entries.AlternativesEntry$Builder - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java - Type:
class - Modifiers:
public static - Extends:
LootPoolEntryContainer.Builder<AlternativesEntry.Builder>
net.minecraft.world.level.storage.loot.entries.AlternativesEntry$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:79 - Modifiers:
public - Return:
LootPoolEntryContainer
คืออะไร
สร้าง build
ทำงานยังไง
เรียกต่อ: getConditions(). สร้างออบเจ็กต์: AlternativesEntry. คืนค่า: new AlternativesEntry(this.entries.build(), this.getConditions()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.AlternativesEntry$Builder#Builder(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:63 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AlternativesEntry.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. เรียกต่อ: add(), build().
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
AlternativesEntry.Builder instance = new AlternativesEntry.Builder(builders);
net.minecraft.world.level.storage.loot.entries.AlternativesEntry$Builder#getThis()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:69 - Modifiers:
protected - Return:
AlternativesEntry.Builder
คืออะไร
อ่านค่า This
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.AlternativesEntry$Builder#otherwise(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/AlternativesEntry.java:73 - Modifiers:
public - Return:
AlternativesEntry.Builder
คืออะไร
ดำเนินการ otherwise ตาม implementation ของ AlternativesEntry$Builder
ทำงานยังไง
เรียกต่อ: add(), build(). คืนค่า: this.
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
AlternativesEntry.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
AlternativesEntry.Builder result = instance.otherwise(builder);
CompositeEntryBase
- Full name:
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java - Type:
class - Modifiers:
public abstract - Extends:
LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase#compose(List<? extends ComposableEntryContainer>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:33 - Modifiers:
protected abstract - Return:
ComposableEntryContainer
คืออะไร
ดำเนินการ compose ตาม implementation ของ CompositeEntryBase
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
List<? extends ComposableEntryContainer> list
ตัวอย่างใช้งาน
List<? extends ComposableEntryContainer> list = ...;
@Override
protected ComposableEntryContainer compose(List<? extends ComposableEntryContainer> list) {
return super.compose(list);
}
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase#CompositeEntryBase(List<LootPoolEntryContainer>,List<LootItemCondition>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:15 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CompositeEntryBase ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: children, composedChildren. เรียกต่อ: compose().
Parameters
List<LootPoolEntryContainer> listList<LootItemCondition> list2
ตัวอย่างใช้งาน
List<LootPoolEntryContainer> list = ...;
List<LootItemCondition> list2 = ...;
CompositeEntryBase instance = new CompositeEntryBase(list, list2);
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase#createCodec(CompositeEntryBase.CompositeEntryConstructor<T>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:40 - Modifiers:
public static - Return:
MapCodec<T>
คืออะไร
สร้าง Codec
ทำงานยังไง
เรียกต่อ: mapCodec(), group(), listOf(), optionalFieldOf(), of(), forGetter(), and(), commonFields().
Parameters
CompositeEntryBase.CompositeEntryConstructor<T> compositeEntryConstructor
ตัวอย่างใช้งาน
CompositeEntryBase.CompositeEntryConstructor<T> compositeEntryConstructor = ...;
MapCodec<T> result = CompositeEntryBase.createCodec(compositeEntryConstructor);
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase#expand(LootContext,Consumer<LootPoolEntry>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:35 - Modifiers:
public final - Return:
boolean
คืออะไร
ดำเนินการ expand ตาม implementation ของ CompositeEntryBase
ทำงานยังไง
เรียกต่อ: canRun(). คืนค่า: !this.canRun(lootContext) ? false : this.composedChildren.expand(lootContext, consumer).
Parameters
LootContext lootContextConsumer<LootPoolEntry> consumer
ตัวอย่างใช้งาน
CompositeEntryBase instance = ...;
LootContext lootContext = ...;
Consumer<LootPoolEntry> consumer = ...;
boolean result = instance.expand(lootContext, consumer);
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase#validate(ValidationContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:21 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), reportProblem(), size(), get(), forChild().
Parameters
ValidationContext validationContext
ตัวอย่างใช้งาน
CompositeEntryBase instance = ...;
ValidationContext validationContext = ...;
instance.validate(validationContext);
CompositeEntryBase$CompositeEntryConstructor
- Full name:
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase$CompositeEntryConstructor - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase$CompositeEntryConstructor#create(List<LootPoolEntryContainer>,List<LootItemCondition>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/CompositeEntryBase.java:52 - Modifiers: ``
- Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
List<LootPoolEntryContainer> listList<LootItemCondition> list2
ตัวอย่างใช้งาน
CompositeEntryBase.CompositeEntryConstructor instance = ...;
List<LootPoolEntryContainer> list = ...;
List<LootItemCondition> list2 = ...;
T result = instance.create(list, list2);
DynamicLoot
- Full name:
net.minecraft.world.level.storage.loot.entries.DynamicLoot - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/DynamicLoot.java - Type:
class - Modifiers:
public - Extends:
LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.DynamicLoot#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/DynamicLoot.java:31 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
เรียกต่อ: addDynamicDrops().
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
DynamicLoot instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.DynamicLoot#dynamicEntry(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/DynamicLoot.java:36 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ dynamicEntry ตาม implementation ของ DynamicLoot
ทำงานยังไง
เรียกต่อ: simpleBuilder(). สร้างออบเจ็กต์: DynamicLoot. คืนค่า: simpleBuilder((i, j, list, list2) -> new DynamicLoot(resourceLocation, i, j, list, list2)).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
LootPoolSingletonContainer.Builder<?> result = DynamicLoot.dynamicEntry(resourceLocation);
net.minecraft.world.level.storage.loot.entries.DynamicLoot#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/DynamicLoot.java:26 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.DYNAMIC.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EmptyLootItem
- Full name:
net.minecraft.world.level.storage.loot.entries.EmptyLootItem - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/EmptyLootItem.java - Type:
class - Modifiers:
public - Extends:
LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.EmptyLootItem#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EmptyLootItem.java:24 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
EmptyLootItem instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.EmptyLootItem#emptyItem()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EmptyLootItem.java:28 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ emptyItem ตาม implementation ของ EmptyLootItem
ทำงานยังไง
เรียกต่อ: simpleBuilder(). คืนค่า: simpleBuilder(EmptyLootItem::new).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.EmptyLootItem#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EmptyLootItem.java:19 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.EMPTY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntryGroup
- Full name:
net.minecraft.world.level.storage.loot.entries.EntryGroup - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/EntryGroup.java - Type:
class - Modifiers:
public - Extends:
CompositeEntryBase
net.minecraft.world.level.storage.loot.entries.EntryGroup#compose(List<? extends ComposableEntryContainer>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:20 - Modifiers:
protected - Return:
ComposableEntryContainer
คืออะไร
ดำเนินการ compose ตาม implementation ของ EntryGroup
ทำงานยังไง
แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: size(), get(), yield(), expand(). มีจุด return อย่างน้อย 3 จุด.
Parameters
List<? extends ComposableEntryContainer> list
ตัวอย่างใช้งาน
List<? extends ComposableEntryContainer> list = ...;
@Override
protected ComposableEntryContainer compose(List<? extends ComposableEntryContainer> list) {
return super.compose(list);
}
net.minecraft.world.level.storage.loot.entries.EntryGroup#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:15 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.GROUP.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.EntryGroup#list(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:44 - Modifiers:
public static - Return:
EntryGroup.Builder
คืออะไร
ดำเนินการ list ตาม implementation ของ EntryGroup
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: EntryGroup.Builder. คืนค่า: new EntryGroup.Builder(builders).
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
EntryGroup.Builder result = EntryGroup.list(builders);
EntryGroup$Builder
- Full name:
net.minecraft.world.level.storage.loot.entries.EntryGroup$Builder - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/EntryGroup.java - Type:
class - Modifiers:
public static - Extends:
LootPoolEntryContainer.Builder<EntryGroup.Builder>
net.minecraft.world.level.storage.loot.entries.EntryGroup$Builder#append(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:61 - Modifiers:
public - Return:
EntryGroup.Builder
คืออะไร
ดำเนินการ append ตาม implementation ของ EntryGroup$Builder
ทำงานยังไง
เรียกต่อ: add(), build(). คืนค่า: this.
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
EntryGroup.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
EntryGroup.Builder result = instance.append(builder);
net.minecraft.world.level.storage.loot.entries.EntryGroup$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:67 - Modifiers:
public - Return:
LootPoolEntryContainer
คืออะไร
สร้าง build
ทำงานยังไง
เรียกต่อ: getConditions(). สร้างออบเจ็กต์: EntryGroup. คืนค่า: new EntryGroup(this.entries.build(), this.getConditions()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.EntryGroup$Builder#Builder(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:51 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntryGroup.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. เรียกต่อ: add(), build().
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
EntryGroup.Builder instance = new EntryGroup.Builder(builders);
net.minecraft.world.level.storage.loot.entries.EntryGroup$Builder#getThis()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/EntryGroup.java:57 - Modifiers:
protected - Return:
EntryGroup.Builder
คืออะไร
อ่านค่า This
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LootItem
- Full name:
net.minecraft.world.level.storage.loot.entries.LootItem - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootItem.java - Type:
class - Modifiers:
public - Extends:
LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.LootItem#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootItem.java:31 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
เรียกต่อ: accept(). สร้างออบเจ็กต์: ItemStack.
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
LootItem instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.LootItem#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootItem.java:26 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.ITEM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootItem#lootTableItem(ItemLike)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootItem.java:36 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ lootTableItem ตาม implementation ของ LootItem
ทำงานยังไง
เรียกต่อ: simpleBuilder(), asItem(), builtInRegistryHolder(). สร้างออบเจ็กต์: LootItem. คืนค่า: simpleBuilder((i, j, list, list2) -> new LootItem(itemLike.asItem().builtInRegistryHolder(), i, j, list, list2)).
Parameters
ItemLike itemLike
ตัวอย่างใช้งาน
ItemLike itemLike = ...;
LootPoolSingletonContainer.Builder<?> result = LootItem.lootTableItem(itemLike);
LootPoolEntry
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolEntry - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolEntry.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.storage.loot.entries.LootPoolEntry#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntry.java:10 - Modifiers: ``
- Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
LootPoolEntry instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.LootPoolEntry#getWeight(float)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntry.java:8 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Weight
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
LootPoolEntryContainer
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java - Type:
class - Modifiers:
public abstract - Implements:
ComposableEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer#canRun(LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:36 - Modifiers:
protected final - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Run
ทำงานยังไง
เรียกต่อ: test(). คืนค่า: this.compositeCondition.test(lootContext).
Parameters
LootContext lootContext
ตัวอย่างใช้งาน
LootContext lootContext = ...;
@Override
protected boolean canRun(LootContext lootContext) {
return super.canRun(lootContext);
}
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer#commonFields(Instance<T>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:24 - Modifiers:
protected static - Return:
P1<Mu<T>, List<LootItemCondition>>
คืออะไร
ดำเนินการ commonFields ตาม implementation ของ LootPoolEntryContainer
ทำงานยังไง
เรียกต่อ: group(), listOf(), optionalFieldOf(), of(), forGetter().
Parameters
Instance<T> instance
ตัวอย่างใช้งาน
Instance<T> instance = ...;
@Override
protected P1<Mu<T>, List<LootItemCondition>> commonFields(Instance<T> instance) {
return super.commonFields(instance);
}
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:40 - Modifiers:
public abstract - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer#LootPoolEntryContainer(List<LootItemCondition>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:19 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LootPoolEntryContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: conditions, compositeCondition. เรียกต่อ: allOf().
Parameters
List<LootItemCondition> list
ตัวอย่างใช้งาน
List<LootItemCondition> list = ...;
LootPoolEntryContainer instance = new LootPoolEntryContainer(list);
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer#validate(ValidationContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:30 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
มีการวนลูป. เรียกต่อ: size(), get(), forChild().
Parameters
ValidationContext validationContext
ตัวอย่างใช้งาน
LootPoolEntryContainer instance = ...;
ValidationContext validationContext = ...;
instance.validate(validationContext);
LootPoolEntryContainer$Builder
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java - Type:
class - Modifiers:
public abstract static - Implements:
ConditionUserBuilder<T>
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#append(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:64 - Modifiers:
public - Return:
EntryGroup.Builder
คืออะไร
ดำเนินการ append ตาม implementation ของ LootPoolEntryContainer$Builder
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: EntryGroup.Builder. คืนค่า: new EntryGroup.Builder(this, builder).
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
EntryGroup.Builder result = instance.append(builder);
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:72 - Modifiers:
public abstract - Return:
LootPoolEntryContainer
คืออะไร
สร้าง build
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#getConditions()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:56 - Modifiers:
protected - Return:
List<LootItemCondition>
คืออะไร
อ่านค่า Conditions
ทำงานยังไง
เรียกต่อ: build(). คืนค่า: this.conditions.build().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#getThis()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:45 - Modifiers:
protected abstract - Return:
T
คืออะไร
อ่านค่า This
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#otherwise(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:60 - Modifiers:
public - Return:
AlternativesEntry.Builder
คืออะไร
ดำเนินการ otherwise ตาม implementation ของ LootPoolEntryContainer$Builder
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: AlternativesEntry.Builder. คืนค่า: new AlternativesEntry.Builder(this, builder).
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
AlternativesEntry.Builder result = instance.otherwise(builder);
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#then(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:68 - Modifiers:
public - Return:
SequentialEntry.Builder
คืออะไร
ดำเนินการ then ตาม implementation ของ LootPoolEntryContainer$Builder
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: SequentialEntry.Builder. คืนค่า: new SequentialEntry.Builder(this, builder).
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
SequentialEntry.Builder result = instance.then(builder);
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#unwrap()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:52 - Modifiers:
public final - Return:
T
คืออะไร
ดำเนินการ unwrap ตาม implementation ของ LootPoolEntryContainer$Builder
ทำงานยังไง
เรียกต่อ: getThis(). คืนค่า: this.getThis().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Builder#when(LootItemCondition.Builder)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer.java:47 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ when ตาม implementation ของ LootPoolEntryContainer$Builder
ทำงานยังไง
เรียกต่อ: add(), build(), getThis(). คืนค่า: this.getThis().
Parameters
LootItemCondition.Builder builder
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder instance = ...;
LootItemCondition.Builder builder = ...;
T result = instance.when(builder);
LootPoolSingletonContainer
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java - Type:
class - Modifiers:
public abstract - Extends:
LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:66 - Modifiers:
protected abstract - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
@Override
protected void createItemStack(Consumer<ItemStack> consumer, LootContext lootContext) {
super.createItemStack(consumer, lootContext);
}
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#expand(LootContext,Consumer<LootPoolEntry>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ expand ตาม implementation ของ LootPoolSingletonContainer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canRun(), accept(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LootContext lootContextConsumer<LootPoolEntry> consumer
ตัวอย่างใช้งาน
LootPoolSingletonContainer instance = ...;
LootContext lootContext = ...;
Consumer<LootPoolEntry> consumer = ...;
boolean result = instance.expand(lootContext, consumer);
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#LootPoolSingletonContainer(int,int,List<LootItemCondition>,List<LootItemFunction>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:36 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LootPoolSingletonContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: weight, quality, functions, compositeFunction. เรียกต่อ: compose().
Parameters
int iint jList<LootItemCondition> listList<LootItemFunction> list2
ตัวอย่างใช้งาน
List<LootItemCondition> list = ...;
List<LootItemFunction> list2 = ...;
LootPoolSingletonContainer instance = new LootPoolSingletonContainer(0, 0, list, list2);
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#simpleBuilder(LootPoolSingletonContainer.EntryConstructor)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:78 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ simpleBuilder ตาม implementation ของ LootPoolSingletonContainer
ทำงานยังไง
เรียกต่อ: DummyBuilder(). สร้างออบเจ็กต์: LootPoolSingletonContainer.DummyBuilder. คืนค่า: new LootPoolSingletonContainer.DummyBuilder(entryConstructor).
Parameters
LootPoolSingletonContainer.EntryConstructor entryConstructor
ตัวอย่างใช้งาน
LootPoolSingletonContainer.EntryConstructor entryConstructor = ...;
LootPoolSingletonContainer.Builder<?> result = LootPoolSingletonContainer.simpleBuilder(entryConstructor);
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#singletonFields(Instance<T>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:44 - Modifiers:
protected static - Return:
P4<Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>>
คืออะไร
ดำเนินการ singletonFields ตาม implementation ของ LootPoolSingletonContainer
ทำงานยังไง
เรียกต่อ: group(), optionalFieldOf(), forGetter(), and(), commonFields(), t1(), listOf(), of().
Parameters
Instance<T> instance
ตัวอย่างใช้งาน
Instance<T> instance = ...;
@Override
protected P4<Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> singletonFields(Instance<T> instance) {
return super.singletonFields(instance);
}
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer#validate(ValidationContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:57 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
มีการวนลูป. เรียกต่อ: size(), get(), forChild().
Parameters
ValidationContext validationContext
ตัวอย่างใช้งาน
LootPoolSingletonContainer instance = ...;
ValidationContext validationContext = ...;
instance.validate(validationContext);
LootPoolSingletonContainer$Builder
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$Builder - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java - Type:
class - Modifiers:
public abstract static - Extends:
LootPoolEntryContainer.Builder<T> - Implements:
FunctionUserBuilder<T>
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$Builder#apply(LootItemFunction.Builder)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:89 - Modifiers:
public - Return:
T
คืออะไร
นำไปใช้ apply
ทำงานยังไง
เรียกต่อ: add(), build(), getThis(). คืนค่า: this.getThis().
Parameters
LootItemFunction.Builder builder
ตัวอย่างใช้งาน
LootPoolSingletonContainer.Builder instance = ...;
LootItemFunction.Builder builder = ...;
T result = instance.apply(builder);
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$Builder#getFunctions()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:94 - Modifiers:
protected - Return:
List<LootItemFunction>
คืออะไร
อ่านค่า Functions
ทำงานยังไง
เรียกต่อ: build(). คืนค่า: this.functions.build().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$Builder#setQuality(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:103 - Modifiers:
public - Return:
T
คืออะไร
กำหนดค่า Quality
ทำงานยังไง
แก้ state: quality. เรียกต่อ: getThis(). คืนค่า: this.getThis().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$Builder#setWeight(int)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:98 - Modifiers:
public - Return:
T
คืออะไร
กำหนดค่า Weight
ทำงานยังไง
แก้ state: weight. เรียกต่อ: getThis(). คืนค่า: this.getThis().
Parameters
int i
ตัวอย่างใช้งาน
LootPoolSingletonContainer$EntryBase
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$EntryBase - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java - Type:
class - Modifiers:
protected abstract - Implements:
LootPoolEntry
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$EntryBase#getWeight(float)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:127 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Weight
ทำงานยังไง
เรียกต่อ: max(), floor(). คืนค่า: Math.max(Mth.floor(LootPoolSingletonContainer.this.weight + LootPoolSingletonContainer.this.quality * f), 0).
Parameters
float f
ตัวอย่างใช้งาน
LootPoolSingletonContainer$EntryConstructor
- Full name:
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$EntryConstructor - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java - Type:
interface - Modifiers:
protected
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer$EntryConstructor#build(int,int,List<LootItemCondition>,List<LootItemFunction>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/LootPoolSingletonContainer.java:135 - Modifiers: ``
- Return:
LootPoolSingletonContainer
คืออะไร
สร้าง build
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jList<LootItemCondition> listList<LootItemFunction> list2
ตัวอย่างใช้งาน
LootPoolSingletonContainer.EntryConstructor instance = ...;
List<LootItemCondition> list = ...;
List<LootItemFunction> list2 = ...;
LootPoolSingletonContainer result = instance.build(0, 0, list, list2);
NestedLootTable
- Full name:
net.minecraft.world.level.storage.loot.entries.NestedLootTable - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/NestedLootTable.java - Type:
class - Modifiers:
public - Extends:
LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.NestedLootTable#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/NestedLootTable.java:40 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
เรียกต่อ: map(), getResolver(), get(), orElse(), getRandomItemsRaw().
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
NestedLootTable instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.NestedLootTable#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/NestedLootTable.java:35 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.LOOT_TABLE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.NestedLootTable#inlineLootTable(LootTable)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/NestedLootTable.java:83 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ inlineLootTable ตาม implementation ของ NestedLootTable
ทำงานยังไง
เรียกต่อ: simpleBuilder(), right(). สร้างออบเจ็กต์: NestedLootTable. คืนค่า: simpleBuilder((i, j, list, list2) -> new NestedLootTable(Either.right(lootTable), i, j, list, list2)).
Parameters
LootTable lootTable
ตัวอย่างใช้งาน
LootTable lootTable = ...;
LootPoolSingletonContainer.Builder<?> result = NestedLootTable.inlineLootTable(lootTable);
net.minecraft.world.level.storage.loot.entries.NestedLootTable#lootTableReference(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/NestedLootTable.java:79 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ lootTableReference ตาม implementation ของ NestedLootTable
ทำงานยังไง
เรียกต่อ: simpleBuilder(), left(). สร้างออบเจ็กต์: NestedLootTable. คืนค่า: simpleBuilder((i, j, list, list2) -> new NestedLootTable(Either.left(resourceKey), i, j, list, list2)).
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
ResourceKey<LootTable> resourceKey = ...;
LootPoolSingletonContainer.Builder<?> result = NestedLootTable.lootTableReference(resourceKey);
net.minecraft.world.level.storage.loot.entries.NestedLootTable#validate(ValidationContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/NestedLootTable.java:50 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบความถูกต้อง validate
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: left(), isPresent(), get(), allowsReferences(), reportProblem(), location(), hasVisitedElement(), ifLeft().
Parameters
ValidationContext validationContext
ตัวอย่างใช้งาน
NestedLootTable instance = ...;
ValidationContext validationContext = ...;
instance.validate(validationContext);
SequentialEntry
- Full name:
net.minecraft.world.level.storage.loot.entries.SequentialEntry - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/SequentialEntry.java - Type:
class - Modifiers:
public - Extends:
CompositeEntryBase
net.minecraft.world.level.storage.loot.entries.SequentialEntry#compose(List<? extends ComposableEntryContainer>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:20 - Modifiers:
protected - Return:
ComposableEntryContainer
คืออะไร
ดำเนินการ compose ตาม implementation ของ SequentialEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: size(), get(), and(), expand(). มีจุด return อย่างน้อย 3 จุด.
Parameters
List<? extends ComposableEntryContainer> list
ตัวอย่างใช้งาน
List<? extends ComposableEntryContainer> list = ...;
@Override
protected ComposableEntryContainer compose(List<? extends ComposableEntryContainer> list) {
return super.compose(list);
}
net.minecraft.world.level.storage.loot.entries.SequentialEntry#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:15 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.SEQUENCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.SequentialEntry#sequential(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:38 - Modifiers:
public static - Return:
SequentialEntry.Builder
คืออะไร
ดำเนินการ sequential ตาม implementation ของ SequentialEntry
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: SequentialEntry.Builder. คืนค่า: new SequentialEntry.Builder(builders).
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
SequentialEntry.Builder result = SequentialEntry.sequential(builders);
SequentialEntry$Builder
- Full name:
net.minecraft.world.level.storage.loot.entries.SequentialEntry$Builder - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/SequentialEntry.java - Type:
class - Modifiers:
public static - Extends:
LootPoolEntryContainer.Builder<SequentialEntry.Builder>
net.minecraft.world.level.storage.loot.entries.SequentialEntry$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:61 - Modifiers:
public - Return:
LootPoolEntryContainer
คืออะไร
สร้าง build
ทำงานยังไง
เรียกต่อ: getConditions(). สร้างออบเจ็กต์: SequentialEntry. คืนค่า: new SequentialEntry(this.entries.build(), this.getConditions()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.SequentialEntry$Builder#Builder(LootPoolEntryContainer.Builder<?>[])
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:45 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SequentialEntry.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. เรียกต่อ: add(), build().
Parameters
LootPoolEntryContainer.Builder<?>[] builders
ตัวอย่างใช้งาน
LootPoolEntryContainer.Builder<?>[] builders = ...;
SequentialEntry.Builder instance = new SequentialEntry.Builder(builders);
net.minecraft.world.level.storage.loot.entries.SequentialEntry$Builder#getThis()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:51 - Modifiers:
protected - Return:
SequentialEntry.Builder
คืออะไร
อ่านค่า This
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.SequentialEntry$Builder#then(LootPoolEntryContainer.Builder<?>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/SequentialEntry.java:55 - Modifiers:
public - Return:
SequentialEntry.Builder
คืออะไร
ดำเนินการ then ตาม implementation ของ SequentialEntry$Builder
ทำงานยังไง
เรียกต่อ: add(), build(). คืนค่า: this.
Parameters
LootPoolEntryContainer.Builder<?> builder
ตัวอย่างใช้งาน
SequentialEntry.Builder instance = ...;
LootPoolEntryContainer.Builder<?> builder = ...;
SequentialEntry.Builder result = instance.then(builder);
TagEntry
- Full name:
net.minecraft.world.level.storage.loot.entries.TagEntry - Package:
net.minecraft.world.level.storage.loot.entries - Source:
common—net/minecraft/world/level/storage/loot/entries/TagEntry.java - Type:
class - Modifiers:
public - Extends:
LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.TagEntry#createItemStack(Consumer<ItemStack>,LootContext)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/TagEntry.java:40 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Item Stack
ทำงานยังไง
เรียกต่อ: getTagOrEmpty(), forEach(), accept(). สร้างออบเจ็กต์: ItemStack.
Parameters
Consumer<ItemStack> consumerLootContext lootContext
ตัวอย่างใช้งาน
TagEntry instance = ...;
Consumer<ItemStack> consumer = ...;
LootContext lootContext = ...;
instance.createItemStack(consumer, lootContext);
net.minecraft.world.level.storage.loot.entries.TagEntry#expand(LootContext,Consumer<LootPoolEntry>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/TagEntry.java:62 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ expand ตาม implementation ของ TagEntry
ทำงานยังไง
เรียกต่อ: expandTag(). คืนค่า: this.expand ? this.expandTag(lootContext, consumer) : super.expand(lootContext, consumer).
Parameters
LootContext lootContextConsumer<LootPoolEntry> consumer
ตัวอย่างใช้งาน
TagEntry instance = ...;
LootContext lootContext = ...;
Consumer<LootPoolEntry> consumer = ...;
boolean result = instance.expand(lootContext, consumer);
net.minecraft.world.level.storage.loot.entries.TagEntry#expandTag(TagKey<Item>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/TagEntry.java:71 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ expandTag ตาม implementation ของ TagEntry
ทำงานยังไง
เรียกต่อ: simpleBuilder(). สร้างออบเจ็กต์: TagEntry. คืนค่า: simpleBuilder((i, j, list, list2) -> new TagEntry(tagKey, true, i, j, list, list2)).
Parameters
TagKey<Item> tagKey
ตัวอย่างใช้งาน
TagKey<Item> tagKey = ...;
LootPoolSingletonContainer.Builder<?> result = TagEntry.expandTag(tagKey);
net.minecraft.world.level.storage.loot.entries.TagEntry#getType()
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/TagEntry.java:35 - Modifiers:
public - Return:
LootPoolEntryType
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: LootPoolEntries.TAG.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.storage.loot.entries.TagEntry#tagContents(TagKey<Item>)
- Origin:
common - Source:
net/minecraft/world/level/storage/loot/entries/TagEntry.java:67 - Modifiers:
public static - Return:
LootPoolSingletonContainer.Builder<?>
คืออะไร
ดำเนินการ tagContents ตาม implementation ของ TagEntry
ทำงานยังไง
เรียกต่อ: simpleBuilder(). สร้างออบเจ็กต์: TagEntry. คืนค่า: simpleBuilder((i, j, list, list2) -> new TagEntry(tagKey, false, i, j, list, list2)).
Parameters
TagKey<Item> tagKey
ตัวอย่างใช้งาน
TagKey<Item> tagKey = ...;
LootPoolSingletonContainer.Builder<?> result = TagEntry.tagContents(tagKey);