Package net.minecraft.world.inventory
Part 1/1
AbstractContainerMenu
- Full name:
net.minecraft.world.inventory.AbstractContainerMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/AbstractContainerMenu.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.inventory.AbstractContainerMenu#AbstractContainerMenu(MenuType<?>,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:67 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractContainerMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: menuType, containerId.
Parameters
MenuType<?> menuTypeint i
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
AbstractContainerMenu instance = new AbstractContainerMenu(menuType, 0);
net.minecraft.world.inventory.AbstractContainerMenu#addDataSlot(DataSlot)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:131 - Modifiers:
protected - Return:
DataSlot
คืออะไร
เพิ่ม Data Slot
ทำงานยังไง
เรียกต่อ: add(). คืนค่า: dataSlot.
Parameters
DataSlot dataSlot
ตัวอย่างใช้งาน
DataSlot dataSlot = ...;
@Override
protected DataSlot addDataSlot(DataSlot dataSlot) {
return super.addDataSlot(dataSlot);
}
net.minecraft.world.inventory.AbstractContainerMenu#addDataSlots(ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:137 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Data Slots
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getCount(), addDataSlot(), forContainer().
Parameters
ContainerData containerData
ตัวอย่างใช้งาน
ContainerData containerData = ...;
@Override
protected void addDataSlots(ContainerData containerData) {
super.addDataSlots(containerData);
}
net.minecraft.world.inventory.AbstractContainerMenu#addInventoryExtendedSlots(Container,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:78 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Inventory Extended Slots
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addSlot(). สร้างออบเจ็กต์: Slot.
Parameters
Container containerint iint j
ตัวอย่างใช้งาน
Container container = ...;
@Override
protected void addInventoryExtendedSlots(Container container, int i, int j) {
super.addInventoryExtendedSlots(container, i, j);
}
net.minecraft.world.inventory.AbstractContainerMenu#addInventoryHotbarSlots(Container,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:72 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Inventory Hotbar Slots
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addSlot(). สร้างออบเจ็กต์: Slot.
Parameters
Container containerint iint j
ตัวอย่างใช้งาน
Container container = ...;
@Override
protected void addInventoryHotbarSlots(Container container, int i, int j) {
super.addInventoryHotbarSlots(container, i, j);
}
net.minecraft.world.inventory.AbstractContainerMenu#addSlot(Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:123 - Modifiers:
protected - Return:
Slot
คืออะไร
เพิ่ม Slot
ทำงานยังไง
เรียกต่อ: size(), add(). คืนค่า: slot.
Parameters
Slot slot
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#addSlotListener(ContainerListener)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:143 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Slot Listener
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), add(), broadcastChanges().
Parameters
ContainerListener containerListener
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ContainerListener containerListener = ...;
instance.addSlotListener(containerListener);
net.minecraft.world.inventory.AbstractContainerMenu#addStandardInventorySlots(Container,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:86 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Standard Inventory Slots
ทำงานยังไง
เรียกต่อ: addInventoryExtendedSlots(), addInventoryHotbarSlots().
Parameters
Container containerint iint j
ตัวอย่างใช้งาน
Container container = ...;
@Override
protected void addStandardInventorySlots(Container container, int i, int j) {
super.addStandardInventorySlots(container, i, j);
}
net.minecraft.world.inventory.AbstractContainerMenu#broadcastChanges()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:188 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ broadcastChanges ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), getItem(), memoize(), triggerSlotListeners(), synchronizeSlotToRemote(), synchronizeCarriedToRemote(), checkAndClearUpdateFlag().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#broadcastFullState()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:209 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ broadcastFullState ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), getItem(), triggerSlotListeners(), checkAndClearUpdateFlag(), updateDataSlotListeners(), sendAllDataToRemote().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#canDragTo(Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:733 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Drag To
ทำงานยังไง
คืนค่า: true.
Parameters
Slot slot
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#canItemQuickReplace(Slot,ItemStack,boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:717 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Item Quick Replace
ทำงานยังไง
เรียกต่อ: hasItem(), isSameItemSameComponents(), getItem(), getCount(), getMaxStackSize().
Parameters
Slot slotItemStack itemStackboolean bl
ตัวอย่างใช้งาน
Slot slot = ...;
ItemStack itemStack = ...;
boolean result = AbstractContainerMenu.canItemQuickReplace(slot, itemStack, true);
net.minecraft.world.inventory.AbstractContainerMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:574 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: true.
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.AbstractContainerMenu#checkContainerDataCount(ContainerData,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:112 - Modifiers:
protected static - Return:
void
คืออะไร
ตรวจสอบ Container Data Count
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCount(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
ContainerData containerDataint i
ตัวอย่างใช้งาน
ContainerData containerData = ...;
@Override
protected void checkContainerDataCount(ContainerData containerData, int i) {
super.checkContainerDataCount(containerData, i);
}
net.minecraft.world.inventory.AbstractContainerMenu#checkContainerSize(Container,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:105 - Modifiers:
protected static - Return:
void
คืออะไร
ตรวจสอบ Container Size
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getContainerSize(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
Container containerint i
ตัวอย่างใช้งาน
Container container = ...;
@Override
protected void checkContainerSize(Container container, int i) {
super.checkContainerSize(container, i);
}
net.minecraft.world.inventory.AbstractContainerMenu#clearContainer(Player,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:598 - Modifiers:
protected - Return:
void
คืออะไร
ล้าง Container
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getContainerSize(), dropOrPlaceInInventory(), removeItemNoUpdate().
Parameters
Player playerContainer container
ตัวอย่างใช้งาน
Player player = ...;
Container container = ...;
@Override
protected void clearContainer(Player player, Container container) {
super.clearContainer(player, container);
}
net.minecraft.world.inventory.AbstractContainerMenu#clicked(int,int,ClickType,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:312 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ clicked ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: doClick(), forThrowable(), addCategory(), setDetail(), getKey(), toString(), getClass(), getCanonicalName(). สร้างออบเจ็กต์: ReportedException.
Parameters
int iint jClickType clickTypePlayer player
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ClickType clickType = ...;
Player player = ...;
instance.clicked(0, 0, clickType, player);
net.minecraft.world.inventory.AbstractContainerMenu#clickMenuButton(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:295 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clickMenuButton ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
คืนค่า: false.
Parameters
Player playerint i
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
Player player = ...;
boolean result = instance.clickMenuButton(player, 0);
net.minecraft.world.inventory.AbstractContainerMenu#findSlot(Container,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:793 - Modifiers:
public - Return:
OptionalInt
คืออะไร
ค้นหา Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), getContainerSlot(), of(), empty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Container containerint i
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
Container container = ...;
OptionalInt result = instance.findSlot(container, 0);
net.minecraft.world.inventory.AbstractContainerMenu#getCarried()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:763 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Carried
ทำงานยังไง
คืนค่า: this.carried.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getItems()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:178 - Modifiers:
public - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
มีการวนลูป. เรียกต่อ: create(), add(), getItem(). คืนค่า: nonNullList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getQuickcraftHeader(int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:696 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Quickcraft Header
ทำงานยังไง
คืนค่า: i & 3.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getQuickcraftMask(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:700 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Quickcraft Mask
ทำงานยังไง
คืนค่า: i & 3 | (j & 3) << 2.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getQuickCraftPlaceCount(Set<Slot>,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:724 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Quick Craft Place Count
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: floor(), getCount(), size(), getMaxStackSize(). คืนค่า: switch (i) { case 0 -> Mth.floor((float)itemStack.getCount() / set.size()).
Parameters
Set<Slot> setint iItemStack itemStack
ตัวอย่างใช้งาน
Set<Slot> set = ...;
ItemStack itemStack = ...;
int result = AbstractContainerMenu.getQuickCraftPlaceCount(set, 0, itemStack);
net.minecraft.world.inventory.AbstractContainerMenu#getQuickcraftType(int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:692 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Quickcraft Type
ทำงานยังไง
คืนค่า: i >> 2 & 3.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getRedstoneSignalFromBlockEntity(BlockEntity)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:737 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Redstone Signal From Block Entity
ทำงานยังไง
เรียกต่อ: getRedstoneSignalFromContainer(). คืนค่า: blockEntity instanceof Container ? getRedstoneSignalFromContainer((Container)blockEntity) : 0.
Parameters
BlockEntity blockEntity
ตัวอย่างใช้งาน
BlockEntity blockEntity = ...;
int result = AbstractContainerMenu.getRedstoneSignalFromBlockEntity(blockEntity);
net.minecraft.world.inventory.AbstractContainerMenu#getRedstoneSignalFromContainer(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:741 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Redstone Signal From Container
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getContainerSize(), getItem(), isEmpty(), getCount(), getMaxStackSize(), lerpDiscrete(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Container container
ตัวอย่างใช้งาน
Container container = ...;
int result = AbstractContainerMenu.getRedstoneSignalFromContainer(container);
net.minecraft.world.inventory.AbstractContainerMenu#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:299 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.slots.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getStateId()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:804 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า State Id
ทำงานยังไง
คืนค่า: this.stateId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#getType()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:97 - Modifiers:
public - Return:
MenuType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: menuType. สร้างออบเจ็กต์: UnsupportedOperationException. คืนค่า: this.menuType.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#incrementStateId()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:808 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ incrementStateId ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
แก้ state: stateId. คืนค่า: this.stateId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#initializeContents(int,List<ItemStack>,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:613 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ initializeContents ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
มีการวนลูป. แก้ state: carried, stateId. เรียกต่อ: size(), getSlot(), set(), get().
Parameters
int iList<ItemStack> listItemStack itemStack
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
List<ItemStack> list = ...;
ItemStack itemStack = ...;
instance.initializeContents(0, list, itemStack);
net.minecraft.world.inventory.AbstractContainerMenu#isValidQuickcraftType(int,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:704 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Quickcraft Type
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasInfiniteMaterials(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iPlayer player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#isValidSlotIndex(int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Slot Index
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: i == -1 || i == -999 || i < this.slots.size().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#moveItemStackTo(ItemStack,int,int,boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:628 - Modifiers:
protected - Return:
boolean
คืออะไร
เคลื่อนที่ Item Stack To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isStackable(), isEmpty(), get(), getItem(), isSameItemSameComponents(), getCount(), getMaxStackSize(), setCount(). คืนค่า: bl2.
Parameters
ItemStack itemStackint iint jboolean bl
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected boolean moveItemStackTo(ItemStack itemStack, int i, int j, boolean bl) {
return super.moveItemStackTo(itemStack, i, j, bl);
}
net.minecraft.world.inventory.AbstractContainerMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:303 - Modifiers:
public abstract - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Player playerint i
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.AbstractContainerMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:578 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCarried(), isEmpty(), dropOrPlaceInInventory(), setCarried().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#removeSlotListener(ContainerListener)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:174 - Modifiers:
public - Return:
void
คืออะไร
ลบ Slot Listener
ทำงานยังไง
เรียกต่อ: remove().
Parameters
ContainerListener containerListener
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ContainerListener containerListener = ...;
instance.removeSlotListener(containerListener);
net.minecraft.world.inventory.AbstractContainerMenu#resetQuickCraft()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:712 - Modifiers:
protected - Return:
void
คืออะไร
รีเซ็ต Quick Craft
ทำงานยังไง
แก้ state: quickcraftStatus. เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#resumeRemoteUpdates()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:771 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ resumeRemoteUpdates ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
แก้ state: suppressRemoteUpdates.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#sendAllDataToRemote()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:155 - Modifiers:
public - Return:
void
คืออะไร
ส่ง All Data To Remote
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: remoteCarried. เรียกต่อ: size(), set(), get(), getItem(), copy(), getCarried(), sendInitialData(), toIntArray().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#setCarried(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:759 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Carried
ทำงานยังไง
แก้ state: carried.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#setData(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:622 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Data
ทำงานยังไง
เรียกต่อ: get(), set().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#setItem(int,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:608 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
แก้ state: stateId. เรียกต่อ: getSlot(), set().
Parameters
int iint jItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#setRemoteCarried(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:291 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Remote Carried
ทำงานยังไง
แก้ state: remoteCarried. เรียกต่อ: copy().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ItemStack itemStack = ...;
instance.setRemoteCarried(itemStack);
net.minecraft.world.inventory.AbstractContainerMenu#setRemoteSlot(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:279 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Remote Slot
ทำงานยังไง
เรียกต่อ: set(), copy().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ItemStack itemStack = ...;
instance.setRemoteSlot(0, itemStack);
net.minecraft.world.inventory.AbstractContainerMenu#setRemoteSlotNoCopy(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:283 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Remote Slot No Copy
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), set(), debug().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ItemStack itemStack = ...;
instance.setRemoteSlotNoCopy(0, itemStack);
net.minecraft.world.inventory.AbstractContainerMenu#setSelectedBundleItemIndex(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:305 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Selected Bundle Item Index
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getItem(), toggleSelectedItem().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#setSynchronizer(ContainerSynchronizer)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:150 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Synchronizer
ทำงานยังไง
แก้ state: synchronizer. เรียกต่อ: sendAllDataToRemote().
Parameters
ContainerSynchronizer containerSynchronizer
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
ContainerSynchronizer containerSynchronizer = ...;
instance.setSynchronizer(containerSynchronizer);
net.minecraft.world.inventory.AbstractContainerMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:604 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
เรียกต่อ: broadcastChanges().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#stillValid(ContainerLevelAccess,Player,Block)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:93 - Modifiers:
protected static - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
เรียกต่อ: evaluate(), getBlockState(), is(), canInteractWithBlock(). คืนค่า: containerLevelAccess.evaluate((level, blockPos) -> !level.getBlockState(blockPos).is(block) ? false : player.canInteractWithBlock(blockPos, 4.0), true).
Parameters
ContainerLevelAccess containerLevelAccessPlayer playerBlock block
ตัวอย่างใช้งาน
ContainerLevelAccess containerLevelAccess = ...;
Player player = ...;
Block block = ...;
@Override
protected boolean stillValid(ContainerLevelAccess containerLevelAccess, Player player, Block block) {
return super.stillValid(containerLevelAccess, player, block);
}
net.minecraft.world.inventory.AbstractContainerMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:626 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Player player
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.inventory.AbstractContainerMenu#suppressRemoteUpdates()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:767 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ suppressRemoteUpdates ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
แก้ state: suppressRemoteUpdates.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractContainerMenu#transferState(AbstractContainerMenu)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractContainerMenu.java:775 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ transferState ตาม implementation ของ AbstractContainerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: create(), size(), get(), put(), getContainerSlot(), set().
Parameters
AbstractContainerMenu abstractContainerMenu
ตัวอย่างใช้งาน
AbstractContainerMenu instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
instance.transferState(abstractContainerMenu);
AbstractCraftingMenu
- Full name:
net.minecraft.world.inventory.AbstractCraftingMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/AbstractCraftingMenu.java - Type:
class - Modifiers:
public abstract - Extends:
RecipeBookMenu
net.minecraft.world.inventory.AbstractCraftingMenu#AbstractCraftingMenu(MenuType<?>,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractCraftingMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: width, height, craftSlots. สร้างออบเจ็กต์: TransientCraftingContainer.
Parameters
MenuType<?> menuTypeint iint jint k
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
AbstractCraftingMenu instance = new AbstractCraftingMenu(menuType, 0, 0, 0);
net.minecraft.world.inventory.AbstractCraftingMenu#addCraftingGridSlots(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:29 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Crafting Grid Slots
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addSlot(). สร้างออบเจ็กต์: Slot.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#addResultSlot(Player,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:25 - Modifiers:
protected - Return:
Slot
คืออะไร
เพิ่ม Result Slot
ทำงานยังไง
เรียกต่อ: addSlot(). สร้างออบเจ็กต์: ResultSlot. คืนค่า: this.addSlot(new ResultSlot(player, this.craftSlots, this.resultSlots, 0, i, j)).
Parameters
Player playerint iint j
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected Slot addResultSlot(Player player, int i, int j) {
return super.addResultSlot(player, i, j);
}
net.minecraft.world.inventory.AbstractCraftingMenu#beginPlacingRecipe()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:66 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ beginPlacingRecipe ตาม implementation ของ AbstractCraftingMenu
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#fillCraftSlotsStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:86 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCraftSlotsStackedContents ตาม implementation ของ AbstractCraftingMenu
ทำงานยังไง
เรียกต่อ: fillStackedContents().
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
AbstractCraftingMenu instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillCraftSlotsStackedContents(stackedItemContents);
net.minecraft.world.inventory.AbstractCraftingMenu#finishPlacingRecipe(ServerLevel,RecipeHolder<CraftingRecipe>)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:69 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ finishPlacingRecipe ตาม implementation ของ AbstractCraftingMenu
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevelRecipeHolder<CraftingRecipe> recipeHolder
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
RecipeHolder<CraftingRecipe> recipeHolder = ...;
@Override
protected void finishPlacingRecipe(ServerLevel serverLevel, RecipeHolder<CraftingRecipe> recipeHolder) {
super.finishPlacingRecipe(serverLevel, recipeHolder);
}
net.minecraft.world.inventory.AbstractCraftingMenu#getGridHeight()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:80 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Grid Height
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#getGridWidth()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:76 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Grid Width
ทำงานยังไง
คืนค่า: this.width.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#getInputGridSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:74 - Modifiers:
public abstract - Return:
List<Slot>
คืออะไร
อ่านค่า Input Grid Slots
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:72 - Modifiers:
public abstract - Return:
Slot
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractCraftingMenu#handlePlacement(boolean,boolean,RecipeHolder<?>,ServerLevel,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:37 - Modifiers:
public - Return:
RecipeBookMenu.PostPlaceAction
คืออะไร
จัดการ Placement
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: beginPlacingRecipe(), getInputGridSlots(), placeRecipe(), fillCraftSlotsStackedContents(), clearCraftingContent(), clearContent(), recipeMatches(), value(). สร้างออบเจ็กต์: ServerPlaceRecipe.CraftingMenuAccess<CraftingRecipe>. คืนค่า: recipeHolder.value().matches(AbstractCraftingMenu.this.craftSlots.asCraftInput(), AbstractCraftingMenu.this.owner().level()).
Parameters
boolean blboolean bl2RecipeHolder<?> recipeHolderServerLevel serverLevelInventory inventory
ตัวอย่างใช้งาน
AbstractCraftingMenu instance = ...;
RecipeHolder<?> recipeHolder = ...;
ServerLevel serverLevel = ...;
Inventory inventory = ...;
RecipeBookMenu.PostPlaceAction result = instance.handlePlacement(true, true, recipeHolder, serverLevel, inventory);
net.minecraft.world.inventory.AbstractCraftingMenu#owner()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractCraftingMenu.java:84 - Modifiers:
protected abstract - Return:
Player
คืออะไร
ดำเนินการ owner ตาม implementation ของ AbstractCraftingMenu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AbstractFurnaceMenu
- Full name:
net.minecraft.world.inventory.AbstractFurnaceMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/AbstractFurnaceMenu.java - Type:
class - Modifiers:
public abstract - Extends:
RecipeBookMenu
net.minecraft.world.inventory.AbstractFurnaceMenu#AbstractFurnaceMenu(MenuType<?>,RecipeType<? extends AbstractCookingRecipe>,ResourceKey<RecipePropertySet>,RecipeBookType,int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:38 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractFurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer, SimpleContainerData.
Parameters
MenuType<?> menuTypeRecipeType<? extends AbstractCookingRecipe> recipeTypeResourceKey<RecipePropertySet> resourceKeyRecipeBookType recipeBookTypeint iInventory inventory
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
RecipeType<? extends AbstractCookingRecipe> recipeType = ...;
ResourceKey<RecipePropertySet> resourceKey = ...;
RecipeBookType recipeBookType = ...;
Inventory inventory = ...;
AbstractFurnaceMenu instance = new AbstractFurnaceMenu(menuType, recipeType, resourceKey, recipeBookType, 0, inventory);
net.minecraft.world.inventory.AbstractFurnaceMenu#AbstractFurnaceMenu(MenuType<?>,RecipeType<? extends AbstractCookingRecipe>,ResourceKey<RecipePropertySet>,RecipeBookType,int,Inventory,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:49 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractFurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: recipeType, recipeBookType, container, data, level, acceptedInputs. เรียกต่อ: checkContainerSize(), checkContainerDataCount(), level(), recipeAccess(), propertySet(), addSlot(), addStandardInventorySlots(), addDataSlots(). สร้างออบเจ็กต์: Slot, FurnaceFuelSlot, FurnaceResultSlot.
Parameters
MenuType<?> menuTypeRecipeType<? extends AbstractCookingRecipe> recipeTypeResourceKey<RecipePropertySet> resourceKeyRecipeBookType recipeBookTypeint iInventory inventoryContainer containerContainerData containerData
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
RecipeType<? extends AbstractCookingRecipe> recipeType = ...;
ResourceKey<RecipePropertySet> resourceKey = ...;
RecipeBookType recipeBookType = ...;
Inventory inventory = ...;
Container container = ...;
ContainerData containerData = ...;
AbstractFurnaceMenu instance = new AbstractFurnaceMenu(menuType, recipeType, resourceKey, recipeBookType, 0, inventory, container, containerData);
net.minecraft.world.inventory.AbstractFurnaceMenu#canSmelt(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:140 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Smelt
ทำงานยังไง
เรียกต่อ: test(). คืนค่า: this.acceptedInputs.test(itemStack).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected boolean canSmelt(ItemStack itemStack) {
return super.canSmelt(itemStack);
}
net.minecraft.world.inventory.AbstractFurnaceMenu#fillCraftSlotsStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:75 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCraftSlotsStackedContents ตาม implementation ของ AbstractFurnaceMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fillStackedContents().
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
AbstractFurnaceMenu instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillCraftSlotsStackedContents(stackedItemContents);
net.minecraft.world.inventory.AbstractFurnaceMenu#getBurnProgress()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:148 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Burn Progress
ทำงานยังไง
เรียกต่อ: get(), clamp(). คืนค่า: j != 0 && i != 0 ? Mth.clamp((float)i / j, 0.0F, 1.0F) : 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractFurnaceMenu#getLitProgress()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:154 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Lit Progress
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), clamp(). คืนค่า: Mth.clamp((float)this.data.get(0) / i, 0.0F, 1.0F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractFurnaceMenu#getRecipeBookType()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:167 - Modifiers:
public - Return:
RecipeBookType
คืออะไร
อ่านค่า Recipe Book Type
ทำงานยังไง
คืนค่า: this.recipeBookType.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractFurnaceMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:82 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.slots.get(2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractFurnaceMenu#handlePlacement(boolean,boolean,RecipeHolder<?>,ServerLevel,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:172 - Modifiers:
public - Return:
RecipeBookMenu.PostPlaceAction
คืออะไร
จัดการ Placement
ทำงานยังไง
เรียกต่อ: of(), getSlot(), placeRecipe(), fillCraftSlotsStackedContents(), clearCraftingContent(), forEach(), set(), recipeMatches(). สร้างออบเจ็กต์: ServerPlaceRecipe.CraftingMenuAccess<AbstractCookingRecipe>, SingleRecipeInput. คืนค่า: recipeHolder.value().matches(new SingleRecipeInput(AbstractFurnaceMenu.this.container.getItem(0)), serverLevel).
Parameters
boolean blboolean bl2RecipeHolder<?> recipeHolderServerLevel serverLevelInventory inventory
ตัวอย่างใช้งาน
AbstractFurnaceMenu instance = ...;
RecipeHolder<?> recipeHolder = ...;
ServerLevel serverLevel = ...;
Inventory inventory = ...;
RecipeBookMenu.PostPlaceAction result = instance.handlePlacement(true, true, recipeHolder, serverLevel, inventory);
net.minecraft.world.inventory.AbstractFurnaceMenu#isFuel(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:144 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fuel
ทำงานยังไง
เรียกต่อ: fuelValues(). คืนค่า: this.level.fuelValues().isFuel(itemStack).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected boolean isFuel(ItemStack itemStack) {
return super.isFuel(itemStack);
}
net.minecraft.world.inventory.AbstractFurnaceMenu#isLit()
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:163 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Lit
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.data.get(0) > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AbstractFurnaceMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:91 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ AbstractFurnaceMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), onQuickCraft(), canSmelt(), isFuel(). มีจุด return อย่างน้อย 8 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
AbstractFurnaceMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.AbstractFurnaceMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/AbstractFurnaceMenu.java:86 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ AbstractFurnaceMenu
ทำงานยังไง
คืนค่า: this.container.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
AbstractFurnaceMenu instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
AnvilMenu
- Full name:
net.minecraft.world.inventory.AnvilMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/AnvilMenu.java - Type:
class - Modifiers:
public - Extends:
ItemCombinerMenu
net.minecraft.world.inventory.AnvilMenu#AnvilMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:47 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AnvilMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AnvilMenu#AnvilMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:51 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AnvilMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: createInputSlotDefinitions(), addDataSlot().
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
AnvilMenu instance = new AnvilMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.AnvilMenu#calculateIncreasedRepairCost(int)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:270 - Modifiers:
public static - Return:
int
คืออะไร
คำนวณ Increased Repair Cost
ทำงานยังไง
เรียกต่อ: min(). คืนค่า: (int)Math.min(i * 2L + 1L, 2147483647L).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AnvilMenu#createResult()
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:111 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Result
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: onlyRenaming, repairItemCountCost. เรียกต่อ: getItem(), set(), isEmpty(), canStoreEnchantments(), copy(), Mutable(), getEnchantmentsForCrafting(), getOrDefault(). สร้างออบเจ็กต์: ItemEnchantments.Mutable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AnvilMenu#getCost()
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:300 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Cost
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.cost.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.AnvilMenu#isValidBlock(BlockState)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:64 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Block
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState.is(BlockTags.ANVIL).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected boolean isValidBlock(BlockState blockState) {
return super.isValidBlock(blockState);
}
net.minecraft.world.inventory.AnvilMenu#mayPickup(Player,boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:69 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ mayPickup ตาม implementation ของ AnvilMenu
ทำงานยังไง
เรียกต่อ: hasInfiniteMaterials(), get(). คืนค่า: (player.hasInfiniteMaterials() || player.experienceLevel >= this.cost.get()) && this.cost.get() > 0.
Parameters
Player playerboolean bl
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected boolean mayPickup(Player player, boolean bl) {
return super.mayPickup(player, bl);
}
net.minecraft.world.inventory.AnvilMenu#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:74 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAbilities(), giveExperienceLevels(), get(), getItem(), isEmpty(), getCount(), shrink(), setItem().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Player player = ...;
ItemStack itemStack = ...;
@Override
protected void onTake(Player player, ItemStack itemStack) {
super.onTake(player, itemStack);
}
net.minecraft.world.inventory.AnvilMenu#setItemName(String)
- Origin:
common - Source:
net/minecraft/world/inventory/AnvilMenu.java:274 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Item Name
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: itemName. เรียกต่อ: validateName(), equals(), getSlot(), hasItem(), getItem(), isBlank(), remove(), set(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
BeaconMenu
- Full name:
net.minecraft.world.inventory.BeaconMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/BeaconMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.BeaconMenu#BeaconMenu(int,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:40 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeaconMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainerData.
Parameters
int iContainer container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#BeaconMenu(int,Container,ContainerData,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:44 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeaconMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: beaconData, access, paymentSlot. เรียกต่อ: checkContainerDataCount(), PaymentSlot(), addSlot(), addDataSlots(), addStandardInventorySlots(). สร้างออบเจ็กต์: BeaconMenu.PaymentSlot.
Parameters
int iContainer containerContainerData containerDataContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Container container = ...;
ContainerData containerData = ...;
ContainerLevelAccess containerLevelAccess = ...;
BeaconMenu instance = new BeaconMenu(0, container, containerData, containerLevelAccess);
net.minecraft.world.inventory.BeaconMenu#decodeEffect(int)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:130 - Modifiers:
public static - Return:
Holder<MobEffect>
คืออะไร
ถอดรหัสข้อมูล Effect
ทำงานยังไง
เรียกต่อ: asHolderIdMap(), byId(). คืนค่า: i == 0 ? null : BuiltInRegistries.MOB_EFFECT.asHolderIdMap().byId(i - 1).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#encodeEffect(Holder<MobEffect>)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:126 - Modifiers:
public static - Return:
int
คืออะไร
เข้ารหัสข้อมูล Effect
ทำงานยังไง
เรียกต่อ: asHolderIdMap(), getId(). คืนค่า: holder == null ? 0 : BuiltInRegistries.MOB_EFFECT.asHolderIdMap().getId(holder) + 1.
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#getLevels()
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:122 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Levels
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.beaconData.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#getPrimaryEffect()
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:135 - Modifiers:
public - Return:
Holder<MobEffect>
คืออะไร
อ่านค่า Primary Effect
ทำงานยังไง
เรียกต่อ: decodeEffect(), get(). คืนค่า: decodeEffect(this.beaconData.get(1)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#getSecondaryEffect()
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:140 - Modifiers:
public - Return:
Holder<MobEffect>
คืออะไร
อ่านค่า Secondary Effect
ทำงานยังไง
เรียกต่อ: decodeEffect(), get(). คืนค่า: decodeEffect(this.beaconData.get(2)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#hasPayment()
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:154 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Payment
ทำงานยังไง
เรียกต่อ: getItem(), isEmpty(). คืนค่า: !this.beacon.getItem(0).isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:77 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ BeaconMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), onQuickCraft(), mayPlace(), getCount(). มีจุด return อย่างน้อย 7 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
BeaconMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.BeaconMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:55 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ BeaconMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), remove(), getMaxStackSize(), isEmpty(), drop().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#setData(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:71 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Data
ทำงานยังไง
เรียกต่อ: broadcastChanges().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:66 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ BeaconMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.BEACON).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BeaconMenu#updateEffects(Optional<Holder<MobEffect>>,Optional<Holder<MobEffect>>)
- Origin:
common - Source:
net/minecraft/world/inventory/BeaconMenu.java:145 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Effects
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasItem(), set(), encodeEffect(), orElse(), remove(), execute().
Parameters
Optional<Holder<MobEffect>> optionalOptional<Holder<MobEffect>> optional2
ตัวอย่างใช้งาน
BeaconMenu instance = ...;
Optional<Holder<MobEffect>> optional = ...;
Optional<Holder<MobEffect>> optional2 = ...;
instance.updateEffects(optional, optional2);
BlastFurnaceMenu
- Full name:
net.minecraft.world.inventory.BlastFurnaceMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/BlastFurnaceMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceMenu
net.minecraft.world.inventory.BlastFurnaceMenu#BlastFurnaceMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/BlastFurnaceMenu.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlastFurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BlastFurnaceMenu#BlastFurnaceMenu(int,Inventory,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/BlastFurnaceMenu.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlastFurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventoryContainer containerContainerData containerData
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ContainerData containerData = ...;
BlastFurnaceMenu instance = new BlastFurnaceMenu(0, inventory, container, containerData);
BrewingStandMenu
- Full name:
net.minecraft.world.inventory.BrewingStandMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/BrewingStandMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.BrewingStandMenu#BrewingStandMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BrewingStandMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer, SimpleContainerData.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BrewingStandMenu#BrewingStandMenu(int,Inventory,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:41 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BrewingStandMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: brewingStand, brewingStandData, ingredientSlot. เรียกต่อ: checkContainerSize(), checkContainerDataCount(), level(), potionBrewing(), addSlot(), PotionSlot(), IngredientsSlot(), FuelSlot(). สร้างออบเจ็กต์: BrewingStandMenu.PotionSlot, BrewingStandMenu.IngredientsSlot, BrewingStandMenu.FuelSlot.
Parameters
int iInventory inventoryContainer containerContainerData containerData
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ContainerData containerData = ...;
BrewingStandMenu instance = new BrewingStandMenu(0, inventory, container, containerData);
net.minecraft.world.inventory.BrewingStandMenu#getBrewingTicks()
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:121 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Brewing Ticks
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.brewingStandData.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BrewingStandMenu#getFuel()
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:117 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Fuel
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.brewingStandData.get(1).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.BrewingStandMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:62 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ BrewingStandMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), mayPlaceItem(), moveItemStackTo(), mayPlace(), onQuickCraft(). มีจุด return อย่างน้อย 9 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
BrewingStandMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.BrewingStandMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/BrewingStandMenu.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ BrewingStandMenu
ทำงานยังไง
คืนค่า: this.brewingStand.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
CartographyTableMenu
- Full name:
net.minecraft.world.inventory.CartographyTableMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/CartographyTableMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.CartographyTableMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:136 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: slot.container != this.resultContainer && super.canTakeItemForPickAll(itemStack, slot).
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
CartographyTableMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.CartographyTableMenu#CartographyTableMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:42 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CartographyTableMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CartographyTableMenu#CartographyTableMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CartographyTableMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: access, lastSoundTime. เรียกต่อ: addSlot(), mayPlace(), has(), is(), onTake(), get(), remove(), getItem(). สร้างออบเจ็กต์: Slot. มีจุด return อย่างน้อย 3 จุด.
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
CartographyTableMenu instance = new CartographyTableMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.CartographyTableMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:141 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ CartographyTableMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), onCraftedBy(), level(), moveItemStackTo(), onQuickCraft(). มีจุด return อย่างน้อย 8 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
CartographyTableMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.CartographyTableMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:191 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ CartographyTableMenu
ทำงานยังไง
เรียกต่อ: removeItemNoUpdate(), execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CartographyTableMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:90 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ CartographyTableMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItem(), isEmpty(), setupResultSlot(), removeItemNoUpdate().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CartographyTableMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/CartographyTableMenu.java:85 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ CartographyTableMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.CARTOGRAPHY_TABLE).
Parameters
Player player
ตัวอย่างใช้งาน
CartographyTableMenu instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
ChestMenu
- Full name:
net.minecraft.world.inventory.ChestMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ChestMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.ChestMenu#ChestMenu(MenuType<?>,int,Inventory,Container,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: container, containerRows. เรียกต่อ: checkContainerSize(), startOpen(), addChestGrid(), addStandardInventorySlots().
Parameters
MenuType<?> menuTypeint iInventory inventoryContainer containerint j
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
Inventory inventory = ...;
Container container = ...;
ChestMenu instance = new ChestMenu(menuType, 0, inventory, container, 0);
net.minecraft.world.inventory.ChestMenu#fiveRows(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:33 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ fiveRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x5, i, inventory, 5).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#fourRows(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:29 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ fourRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x4, i, inventory, 4).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#getContainer()
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:105 - Modifiers:
public - Return:
Container
คืออะไร
อ่านค่า Container
ทำงานยังไง
คืนค่า: this.container.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#getRowCount()
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:109 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Row Count
ทำงานยังไง
คืนค่า: this.containerRows.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#oneRow(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:17 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ oneRow ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x1, i, inventory, 1).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:74 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ ChestMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), size(), isEmpty(), setByPlayer(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
ChestMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.ChestMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:99 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ ChestMenu
ทำงานยังไง
เรียกต่อ: stopOpen().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#sixRows(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:37 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ sixRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x6, i, inventory, 6).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#sixRows(int,Inventory,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:45 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ sixRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x6, i, inventory, container, 6).
Parameters
int iInventory inventoryContainer container
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ChestMenu result = ChestMenu.sixRows(0, inventory, container);
net.minecraft.world.inventory.ChestMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:69 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ ChestMenu
ทำงานยังไง
คืนค่า: this.container.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#threeRows(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:25 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ threeRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x3, i, inventory, 3).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ChestMenu#threeRows(int,Inventory,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:41 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ threeRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x3, i, inventory, container, 3).
Parameters
int iInventory inventoryContainer container
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ChestMenu result = ChestMenu.threeRows(0, inventory, container);
net.minecraft.world.inventory.ChestMenu#twoRows(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ChestMenu.java:21 - Modifiers:
public static - Return:
ChestMenu
คืออะไร
ดำเนินการ twoRows ตาม implementation ของ ChestMenu
ทำงานยังไง
สร้างออบเจ็กต์: ChestMenu. คืนค่า: new ChestMenu(MenuType.GENERIC_9x2, i, inventory, 2).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
ContainerData
- Full name:
net.minecraft.world.inventory.ContainerData - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ContainerData.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.ContainerData#get(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerData.java:4 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ContainerData#getCount()
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerData.java:8 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Count
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ContainerData#set(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerData.java:6 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint j
ตัวอย่างใช้งาน
ContainerLevelAccess
- Full name:
net.minecraft.world.inventory.ContainerLevelAccess - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ContainerLevelAccess.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.ContainerLevelAccess#create(Level,BlockPos)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerLevelAccess.java:17 - Modifiers:
static - Return:
ContainerLevelAccess
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: evaluate(), of(), apply(). สร้างออบเจ็กต์: ContainerLevelAccess. คืนค่า: Optional.of(biFunction.apply(level, blockPos)).
Parameters
Level levelBlockPos blockPos
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
ContainerLevelAccess result = ContainerLevelAccess.create(level, blockPos);
net.minecraft.world.inventory.ContainerLevelAccess#evaluate(BiFunction<Level, BlockPos, T>)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerLevelAccess.java:26 - Modifiers: ``
- Return:
Optional<T>
คืออะไร
ดำเนินการ evaluate ตาม implementation ของ ContainerLevelAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BiFunction<Level, BlockPos, T> biFunction
ตัวอย่างใช้งาน
ContainerLevelAccess instance = ...;
BiFunction<Level, BlockPos, T> biFunction = ...;
Optional<T> result = instance.evaluate(biFunction);
net.minecraft.world.inventory.ContainerLevelAccess#evaluate(BiFunction<Level, BlockPos, T>,T)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerLevelAccess.java:28 - Modifiers:
default - Return:
T
คืออะไร
ดำเนินการ evaluate ตาม implementation ของ ContainerLevelAccess
ทำงานยังไง
เรียกต่อ: orElse(). คืนค่า: this.evaluate(biFunction).orElse(object).
Parameters
BiFunction<Level, BlockPos, T> biFunctionT object
ตัวอย่างใช้งาน
ContainerLevelAccess instance = ...;
BiFunction<Level, BlockPos, T> biFunction = ...;
T object = ...;
T result = instance.evaluate(biFunction, object);
net.minecraft.world.inventory.ContainerLevelAccess#execute(BiConsumer<Level, BlockPos>)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerLevelAccess.java:32 - Modifiers:
default - Return:
void
คืออะไร
สั่งทำงาน execute
ทำงานยังไง
เรียกต่อ: evaluate(), accept(), empty(). คืนค่า: Optional.empty().
Parameters
BiConsumer<Level, BlockPos> biConsumer
ตัวอย่างใช้งาน
ContainerLevelAccess instance = ...;
BiConsumer<Level, BlockPos> biConsumer = ...;
instance.execute(biConsumer);
ContainerListener
- Full name:
net.minecraft.world.inventory.ContainerListener - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ContainerListener.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.ContainerListener#dataChanged(AbstractContainerMenu,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerListener.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ dataChanged ตาม implementation ของ ContainerListener
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuint iint j
ตัวอย่างใช้งาน
ContainerListener instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
instance.dataChanged(abstractContainerMenu, 0, 0);
net.minecraft.world.inventory.ContainerListener#slotChanged(AbstractContainerMenu,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerListener.java:6 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ slotChanged ตาม implementation ของ ContainerListener
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuint iItemStack itemStack
ตัวอย่างใช้งาน
ContainerListener instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
ItemStack itemStack = ...;
instance.slotChanged(abstractContainerMenu, 0, itemStack);
ContainerSynchronizer
- Full name:
net.minecraft.world.inventory.ContainerSynchronizer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ContainerSynchronizer.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.ContainerSynchronizer#sendCarriedChange(AbstractContainerMenu,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerSynchronizer.java:11 - Modifiers: ``
- Return:
void
คืออะไร
ส่ง Carried Change
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuItemStack itemStack
ตัวอย่างใช้งาน
ContainerSynchronizer instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
ItemStack itemStack = ...;
instance.sendCarriedChange(abstractContainerMenu, itemStack);
net.minecraft.world.inventory.ContainerSynchronizer#sendDataChange(AbstractContainerMenu,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerSynchronizer.java:13 - Modifiers: ``
- Return:
void
คืออะไร
ส่ง Data Change
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuint iint j
ตัวอย่างใช้งาน
ContainerSynchronizer instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
instance.sendDataChange(abstractContainerMenu, 0, 0);
net.minecraft.world.inventory.ContainerSynchronizer#sendInitialData(AbstractContainerMenu,NonNullList<ItemStack>,ItemStack,int[])
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerSynchronizer.java:7 - Modifiers: ``
- Return:
void
คืออะไร
ส่ง Initial Data
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuNonNullList<ItemStack> nonNullListItemStack itemStackint[] is
ตัวอย่างใช้งาน
ContainerSynchronizer instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
NonNullList<ItemStack> nonNullList = ...;
ItemStack itemStack = ...;
int[] is = ...;
instance.sendInitialData(abstractContainerMenu, nonNullList, itemStack, is);
net.minecraft.world.inventory.ContainerSynchronizer#sendSlotChange(AbstractContainerMenu,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ContainerSynchronizer.java:9 - Modifiers: ``
- Return:
void
คืออะไร
ส่ง Slot Change
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
AbstractContainerMenu abstractContainerMenuint iItemStack itemStack
ตัวอย่างใช้งาน
ContainerSynchronizer instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
ItemStack itemStack = ...;
instance.sendSlotChange(abstractContainerMenu, 0, itemStack);
CrafterMenu
- Full name:
net.minecraft.world.inventory.CrafterMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/CrafterMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu - Implements:
ContainerListener
net.minecraft.world.inventory.CrafterMenu#CrafterMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CrafterMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, containerData, container. เรียกต่อ: addSlots(). สร้างออบเจ็กต์: SimpleContainerData, TransientCraftingContainer.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CrafterMenu#CrafterMenu(int,Inventory,CraftingContainer,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CrafterMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, containerData, container. เรียกต่อ: checkContainerSize(), startOpen(), addSlots(), addSlotListener().
Parameters
int iInventory inventoryCraftingContainer craftingContainerContainerData containerData
ตัวอย่างใช้งาน
Inventory inventory = ...;
CraftingContainer craftingContainer = ...;
ContainerData containerData = ...;
CrafterMenu instance = new CrafterMenu(0, inventory, craftingContainer, containerData);
net.minecraft.world.inventory.CrafterMenu#dataChanged(AbstractContainerMenu,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:126 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dataChanged ตาม implementation ของ CrafterMenu
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
AbstractContainerMenu abstractContainerMenuint iint j
ตัวอย่างใช้งาน
CrafterMenu instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
instance.dataChanged(abstractContainerMenu, 0, 0);
net.minecraft.world.inventory.CrafterMenu#getContainer()
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:117 - Modifiers:
public - Return:
Container
คืออะไร
อ่านค่า Container
ทำงานยังไง
คืนค่า: this.container.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CrafterMenu#isPowered()
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:66 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Powered
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.containerData.get(9) == 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CrafterMenu#isSlotDisabled(int)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:62 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Slot Disabled
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: i > -1 && i < 9 ? this.containerData.get(i) == 1 : false.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CrafterMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:70 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ CrafterMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), isEmpty(), set(), setChanged(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
CrafterMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.CrafterMenu#setSlotState(int,boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:56 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Slot State
ทำงานยังไง
เรียกต่อ: getSlot(), set(), broadcastChanges().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CrafterMenu#slotChanged(AbstractContainerMenu,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:121 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotChanged ตาม implementation ของ CrafterMenu
ทำงานยังไง
เรียกต่อ: refreshRecipeResult().
Parameters
AbstractContainerMenu abstractContainerMenuint iItemStack itemStack
ตัวอย่างใช้งาน
CrafterMenu instance = ...;
AbstractContainerMenu abstractContainerMenu = ...;
ItemStack itemStack = ...;
instance.slotChanged(abstractContainerMenu, 0, itemStack);
net.minecraft.world.inventory.CrafterMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterMenu.java:101 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ CrafterMenu
ทำงานยังไง
คืนค่า: this.container.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
CrafterSlot
- Full name:
net.minecraft.world.inventory.CrafterSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/CrafterSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.CrafterSlot#CrafterSlot(Container,int,int,int,CrafterMenu)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterSlot.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CrafterSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: menu.
Parameters
Container containerint iint jint kCrafterMenu crafterMenu
ตัวอย่างใช้งาน
Container container = ...;
CrafterMenu crafterMenu = ...;
CrafterSlot instance = new CrafterSlot(container, 0, 0, 0, crafterMenu);
net.minecraft.world.inventory.CrafterSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterSlot.java:14 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ CrafterSlot
ทำงานยังไง
เรียกต่อ: isSlotDisabled(). คืนค่า: !this.menu.isSlotDisabled(this.index) && super.mayPlace(itemStack).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
CrafterSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.CrafterSlot#setChanged()
- Origin:
common - Source:
net/minecraft/world/inventory/CrafterSlot.java:19 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
เรียกต่อ: slotsChanged().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CraftingContainer
- Full name:
net.minecraft.world.inventory.CraftingContainer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/CraftingContainer.java - Type:
interface - Modifiers:
public - Implements:
Container,StackedContentsCompatible
net.minecraft.world.inventory.CraftingContainer#asCraftInput()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingContainer.java:15 - Modifiers:
default - Return:
CraftingInput
คืออะไร
ดำเนินการ asCraftInput ตาม implementation ของ CraftingContainer
ทำงานยังไง
เรียกต่อ: asPositionedCraftInput(), input(). คืนค่า: this.asPositionedCraftInput().input().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingContainer#asPositionedCraftInput()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingContainer.java:19 - Modifiers:
default - Return:
CraftingInput.Positioned
คืออะไร
ดำเนินการ asPositionedCraftInput ตาม implementation ของ CraftingContainer
ทำงานยังไง
เรียกต่อ: ofPositioned(), getWidth(), getHeight(), getItems(). คืนค่า: CraftingInput.ofPositioned(this.getWidth(), this.getHeight(), this.getItems()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CraftingContainer instance = ...;
CraftingInput.Positioned result = instance.asPositionedCraftInput();
net.minecraft.world.inventory.CraftingContainer#getHeight()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingContainer.java:11 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingContainer#getItems()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingContainer.java:13 - Modifiers: ``
- Return:
List<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingContainer#getWidth()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingContainer.java:9 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Width
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CraftingMenu
- Full name:
net.minecraft.world.inventory.CraftingMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/CraftingMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractCraftingMenu
net.minecraft.world.inventory.CraftingMenu#beginPlacingRecipe()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:89 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ beginPlacingRecipe ตาม implementation ของ CraftingMenu
ทำงานยังไง
แก้ state: placingRecipe.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:158 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: slot.container != this.resultSlots && super.canTakeItemForPickAll(itemStack, slot).
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
CraftingMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.CraftingMenu#CraftingMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CraftingMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#CraftingMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CraftingMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: access, player. เรียกต่อ: addResultSlot(), addCraftingGridSlots(), addStandardInventorySlots().
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
CraftingMenu instance = new CraftingMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.CraftingMenu#finishPlacingRecipe(ServerLevel,RecipeHolder<CraftingRecipe>)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:94 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ finishPlacingRecipe ตาม implementation ของ CraftingMenu
ทำงานยังไง
แก้ state: placingRecipe. เรียกต่อ: slotChangedCraftingGrid().
Parameters
ServerLevel serverLevelRecipeHolder<CraftingRecipe> recipeHolder
ตัวอย่างใช้งาน
CraftingMenu instance = ...;
ServerLevel serverLevel = ...;
RecipeHolder<CraftingRecipe> recipeHolder = ...;
instance.finishPlacingRecipe(serverLevel, recipeHolder);
net.minecraft.world.inventory.CraftingMenu#getInputGridSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:168 - Modifiers:
public - Return:
List<Slot>
คืออะไร
อ่านค่า Input Grid Slots
ทำงานยังไง
เรียกต่อ: subList(). คืนค่า: this.slots.subList(1, 10).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#getRecipeBookType()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:173 - Modifiers:
public - Return:
RecipeBookType
คืออะไร
อ่านค่า Recipe Book Type
ทำงานยังไง
คืนค่า: RecipeBookType.CRAFTING.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:163 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.slots.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#owner()
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:178 - Modifiers:
protected - Return:
Player
คืออะไร
ดำเนินการ owner ตาม implementation ของ CraftingMenu
ทำงานยังไง
คืนค่า: this.player.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:111 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ CraftingMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), execute(), onCraftedBy(), moveItemStackTo(), onQuickCraft(). มีจุด return อย่างน้อย 6 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
CraftingMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.CraftingMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:100 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ CraftingMenu
ทำงานยังไง
เรียกต่อ: execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#slotChangedCraftingGrid(AbstractContainerMenu,ServerLevel,Player,CraftingContainer,ResultContainer,RecipeHolder<CraftingRecipe>)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:47 - Modifiers:
protected static - Return:
void
คืออะไร
ดำเนินการ slotChangedCraftingGrid ตาม implementation ของ CraftingMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asCraftInput(), getServer(), getRecipeManager(), getRecipeFor(), isPresent(), get(), value(), setRecipeUsed(). สร้างออบเจ็กต์: ClientboundContainerSetSlotPacket.
Parameters
AbstractContainerMenu abstractContainerMenuServerLevel serverLevelPlayer playerCraftingContainer craftingContainerResultContainer resultContainerRecipeHolder<CraftingRecipe> recipeHolder
ตัวอย่างใช้งาน
AbstractContainerMenu abstractContainerMenu = ...;
ServerLevel serverLevel = ...;
Player player = ...;
CraftingContainer craftingContainer = ...;
ResultContainer resultContainer = ...;
RecipeHolder<CraftingRecipe> recipeHolder = ...;
@Override
protected void slotChangedCraftingGrid(AbstractContainerMenu abstractContainerMenu, ServerLevel serverLevel, Player player, CraftingContainer craftingContainer, ResultContainer resultContainer, RecipeHolder<CraftingRecipe> recipeHolder) {
super.slotChangedCraftingGrid(abstractContainerMenu, serverLevel, player, craftingContainer, resultContainer, recipeHolder);
}
net.minecraft.world.inventory.CraftingMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:78 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ CraftingMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: execute(), slotChangedCraftingGrid().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.CraftingMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/CraftingMenu.java:106 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ CraftingMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.CRAFTING_TABLE).
Parameters
Player player
ตัวอย่างใช้งาน
DataSlot
- Full name:
net.minecraft.world.inventory.DataSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/DataSlot.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.inventory.DataSlot#checkAndClearUpdateFlag()
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:54 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบ And Clear Update Flag
ทำงานยังไง
แก้ state: prevValue. เรียกต่อ: get(). คืนค่า: bl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DataSlot#forContainer(ContainerData,int)
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:6 - Modifiers:
public static - Return:
DataSlot
คืออะไร
ดำเนินการ forContainer ตาม implementation ของ DataSlot
ทำงานยังไง
เรียกต่อ: get(), set(). สร้างออบเจ็กต์: DataSlot. คืนค่า: new DataSlot() { @Override public int get() { return containerData.get(i).
Parameters
ContainerData containerDataint i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DataSlot#get()
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:50 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DataSlot#set(int)
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:52 - Modifiers:
public abstract - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DataSlot#shared(int[],int)
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:20 - Modifiers:
public static - Return:
DataSlot
คืออะไร
ดำเนินการ shared ตาม implementation ของ DataSlot
ทำงานยังไง
เรียกต่อ: get(), set(). สร้างออบเจ็กต์: DataSlot. คืนค่า: new DataSlot() { @Override public int get() { return is[i].
Parameters
int[] isint i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DataSlot#standalone()
- Origin:
common - Source:
net/minecraft/world/inventory/DataSlot.java:34 - Modifiers:
public static - Return:
DataSlot
คืออะไร
ดำเนินการ standalone ตาม implementation ของ DataSlot
ทำงานยังไง
แก้ state: value. เรียกต่อ: get(), set(). สร้างออบเจ็กต์: DataSlot. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DispenserMenu
- Full name:
net.minecraft.world.inventory.DispenserMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/DispenserMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.DispenserMenu#add3x3GridSlots(Container,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:30 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ add3x3GridSlots ตาม implementation ของ DispenserMenu
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addSlot(). สร้างออบเจ็กต์: Slot.
Parameters
Container containerint iint j
ตัวอย่างใช้งาน
Container container = ...;
@Override
protected void add3x3GridSlots(Container container, int i, int j) {
super.add3x3GridSlots(container, i, j);
}
net.minecraft.world.inventory.DispenserMenu#DispenserMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DispenserMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DispenserMenu#DispenserMenu(int,Inventory,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DispenserMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: dispenser. เรียกต่อ: checkContainerSize(), startOpen(), add3x3GridSlots(), addStandardInventorySlots().
Parameters
int iInventory inventoryContainer container
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
DispenserMenu instance = new DispenserMenu(0, inventory, container);
net.minecraft.world.inventory.DispenserMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:44 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ DispenserMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), isEmpty(), setByPlayer(), setChanged(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
DispenserMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.DispenserMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:75 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ DispenserMenu
ทำงานยังไง
เรียกต่อ: stopOpen().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.DispenserMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/DispenserMenu.java:39 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ DispenserMenu
ทำงานยังไง
คืนค่า: this.dispenser.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
EnchantmentMenu
- Full name:
net.minecraft.world.inventory.EnchantmentMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/EnchantmentMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.EnchantmentMenu#clickMenuButton(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:134 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clickMenuButton ตาม implementation ของ EnchantmentMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItem(), isEmpty(), getCount(), hasInfiniteMaterials(), getAbilities(), execute(), getEnchantmentList(), registryAccess(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
EnchantmentMenu instance = ...;
Player player = ...;
boolean result = instance.clickMenuButton(player, 0);
net.minecraft.world.inventory.EnchantmentMenu#EnchantmentMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EnchantmentMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.EnchantmentMenu#EnchantmentMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EnchantmentMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: access. เรียกต่อ: addSlot(), getMaxStackSize(), mayPlace(), is(), getNoItemIcon(), addStandardInventorySlots(), addDataSlot(), shared(). สร้างออบเจ็กต์: Slot. มีจุด return อย่างน้อย 3 จุด.
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
EnchantmentMenu instance = new EnchantmentMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.EnchantmentMenu#getEnchantmentSeed()
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:207 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Enchantment Seed
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.enchantmentSeed.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.EnchantmentMenu#getGoldCount()
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:202 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gold Count
ทำงานยังไง
เรียกต่อ: getItem(), isEmpty(), getCount(). คืนค่า: itemStack.isEmpty() ? 0 : itemStack.getCount().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.EnchantmentMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:222 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ EnchantmentMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), is(), mayPlace(), copyWithCount(). มีจุด return อย่างน้อย 6 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
EnchantmentMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.EnchantmentMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:211 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ EnchantmentMenu
ทำงานยังไง
เรียกต่อ: execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.EnchantmentMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:85 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ EnchantmentMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItem(), isEmpty(), isEnchantable(), execute(), registryAccess(), lookupOrThrow(), asHolderIdMap(), isValidBookShelf().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.EnchantmentMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/EnchantmentMenu.java:217 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ EnchantmentMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.ENCHANTING_TABLE).
Parameters
Player player
ตัวอย่างใช้งาน
FurnaceFuelSlot
- Full name:
net.minecraft.world.inventory.FurnaceFuelSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/FurnaceFuelSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.FurnaceFuelSlot#FurnaceFuelSlot(AbstractFurnaceMenu,Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceFuelSlot.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceFuelSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: menu.
Parameters
AbstractFurnaceMenu abstractFurnaceMenuContainer containerint iint jint k
ตัวอย่างใช้งาน
AbstractFurnaceMenu abstractFurnaceMenu = ...;
Container container = ...;
FurnaceFuelSlot instance = new FurnaceFuelSlot(abstractFurnaceMenu, container, 0, 0, 0);
net.minecraft.world.inventory.FurnaceFuelSlot#getMaxStackSize(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceFuelSlot.java:20 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Stack Size
ทำงานยังไง
เรียกต่อ: isBucket(). คืนค่า: isBucket(itemStack) ? 1 : super.getMaxStackSize(itemStack).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
FurnaceFuelSlot instance = ...;
ItemStack itemStack = ...;
int result = instance.getMaxStackSize(itemStack);
net.minecraft.world.inventory.FurnaceFuelSlot#isBucket(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceFuelSlot.java:25 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Bucket
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: itemStack.is(Items.BUCKET).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.FurnaceFuelSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceFuelSlot.java:15 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ FurnaceFuelSlot
ทำงานยังไง
เรียกต่อ: isFuel(), isBucket(). คืนค่า: this.menu.isFuel(itemStack) || isBucket(itemStack).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
FurnaceFuelSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
FurnaceMenu
- Full name:
net.minecraft.world.inventory.FurnaceMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/FurnaceMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceMenu
net.minecraft.world.inventory.FurnaceMenu#FurnaceMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceMenu.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.FurnaceMenu#FurnaceMenu(int,Inventory,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceMenu.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventoryContainer containerContainerData containerData
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ContainerData containerData = ...;
FurnaceMenu instance = new FurnaceMenu(0, inventory, container, containerData);
FurnaceResultSlot
- Full name:
net.minecraft.world.inventory.FurnaceResultSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/FurnaceResultSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.FurnaceResultSlot#checkTakeAchievements(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:44 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Take Achievements
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removeCount. เรียกต่อ: onCraftedBy(), level(), awardUsedRecipesAndPopExperience().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void checkTakeAchievements(ItemStack itemStack) {
super.checkTakeAchievements(itemStack);
}
net.minecraft.world.inventory.FurnaceResultSlot#FurnaceResultSlot(Player,Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceResultSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player.
Parameters
Player playerContainer containerint iint jint k
ตัวอย่างใช้งาน
Player player = ...;
Container container = ...;
FurnaceResultSlot instance = new FurnaceResultSlot(player, container, 0, 0, 0);
net.minecraft.world.inventory.FurnaceResultSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ FurnaceResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
FurnaceResultSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.FurnaceResultSlot#onQuickCraft(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:38 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
แก้ state: removeCount. เรียกต่อ: checkTakeAchievements().
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void onQuickCraft(ItemStack itemStack, int i) {
super.onQuickCraft(itemStack, i);
}
net.minecraft.world.inventory.FurnaceResultSlot#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:32 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
เรียกต่อ: checkTakeAchievements().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
FurnaceResultSlot instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.onTake(player, itemStack);
net.minecraft.world.inventory.FurnaceResultSlot#remove(int)
- Origin:
common - Source:
net/minecraft/world/inventory/FurnaceResultSlot.java:23 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removeCount. เรียกต่อ: hasItem(), min(), getItem(), getCount(). คืนค่า: super.remove(i).
Parameters
int i
ตัวอย่างใช้งาน
GrindstoneMenu
- Full name:
net.minecraft.world.inventory.GrindstoneMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/GrindstoneMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.GrindstoneMenu#GrindstoneMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:41 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GrindstoneMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.GrindstoneMenu#GrindstoneMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:45 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GrindstoneMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: access. เรียกต่อ: addSlot(), mayPlace(), isDamageableItem(), hasAnyEnchantments(), onTake(), execute(), award(), atCenterOf(). สร้างออบเจ็กต์: Slot. มีจุด return อย่างน้อย 6 จุด.
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
GrindstoneMenu instance = new GrindstoneMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.GrindstoneMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:209 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ GrindstoneMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), onQuickCraft(), isEmpty(), setByPlayer(). มีจุด return อย่างน้อย 7 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
GrindstoneMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.GrindstoneMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:198 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ GrindstoneMenu
ทำงานยังไง
เรียกต่อ: execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.GrindstoneMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:109 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ GrindstoneMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createResult().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.GrindstoneMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/GrindstoneMenu.java:204 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ GrindstoneMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.GRINDSTONE).
Parameters
Player player
ตัวอย่างใช้งาน
HopperMenu
- Full name:
net.minecraft.world.inventory.HopperMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/HopperMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.HopperMenu#HopperMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/HopperMenu.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HopperMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.HopperMenu#HopperMenu(int,Inventory,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/HopperMenu.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HopperMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. แก้ state: hopper. เรียกต่อ: checkContainerSize(), startOpen(), addSlot(), addStandardInventorySlots(). สร้างออบเจ็กต์: Slot.
Parameters
int iInventory inventoryContainer container
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
HopperMenu instance = new HopperMenu(0, inventory, container);
net.minecraft.world.inventory.HopperMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/HopperMenu.java:35 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ HopperMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), getContainerSize(), moveItemStackTo(), size(), isEmpty(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
HopperMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.HopperMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/HopperMenu.java:60 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ HopperMenu
ทำงานยังไง
เรียกต่อ: stopOpen().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.HopperMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/HopperMenu.java:30 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ HopperMenu
ทำงานยังไง
คืนค่า: this.hopper.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
HorseInventoryMenu
- Full name:
net.minecraft.world.inventory.HorseInventoryMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/HorseInventoryMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.HorseInventoryMenu#HorseInventoryMenu(int,Inventory,Container,AbstractHorse,int)
- Origin:
common - Source:
net/minecraft/world/inventory/HorseInventoryMenu.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HorseInventoryMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: horseContainer, armorContainer, horse. เรียกต่อ: getBodyArmorAccess(), startOpen(), addSlot(), mayPlace(), is(), hasItem(), isSaddleable(), isActive(). สร้างออบเจ็กต์: Slot, ArmorSlot. มีจุด return อย่างน้อย 5 จุด.
Parameters
int iInventory inventoryContainer containerAbstractHorse abstractHorseint j
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
AbstractHorse abstractHorse = ...;
HorseInventoryMenu instance = new HorseInventoryMenu(0, inventory, container, abstractHorse, 0);
net.minecraft.world.inventory.HorseInventoryMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/HorseInventoryMenu.java:77 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ HorseInventoryMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), getContainerSize(), moveItemStackTo(), size(), getSlot(). มีจุด return อย่างน้อย 8 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
HorseInventoryMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.HorseInventoryMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/HorseInventoryMenu.java:127 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ HorseInventoryMenu
ทำงานยังไง
เรียกต่อ: stopOpen().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.HorseInventoryMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/HorseInventoryMenu.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ HorseInventoryMenu
ทำงานยังไง
เรียกต่อ: hasInventoryChanged(), isAlive(), canInteractWithEntity().
Parameters
Player player
ตัวอย่างใช้งาน
HorseInventoryMenu instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
InventoryMenu
- Full name:
net.minecraft.world.inventory.InventoryMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/InventoryMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractCraftingMenu
net.minecraft.world.inventory.InventoryMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:163 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: slot.container != this.resultSlots && super.canTakeItemForPickAll(itemStack, slot).
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
InventoryMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.InventoryMenu#getCraftSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:178 - Modifiers:
public - Return:
CraftingContainer
คืออะไร
อ่านค่า Craft Slots
ทำงานยังไง
คืนค่า: this.craftSlots.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#getInputGridSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:173 - Modifiers:
public - Return:
List<Slot>
คืออะไร
อ่านค่า Input Grid Slots
ทำงานยังไง
เรียกต่อ: subList(). คืนค่า: this.slots.subList(1, 5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#getRecipeBookType()
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:182 - Modifiers:
public - Return:
RecipeBookType
คืออะไร
อ่านค่า Recipe Book Type
ทำงานยังไง
คืนค่า: RecipeBookType.CRAFTING.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:168 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.slots.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#InventoryMenu(Inventory,boolean,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ InventoryMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. แก้ state: active, owner. เรียกต่อ: addResultSlot(), addCraftingGridSlots(), get(), addSlot(), addStandardInventorySlots(), setByPlayer(), onEquipItem(), getNoItemIcon(). สร้างออบเจ็กต์: ArmorSlot, Slot. คืนค่า: InventoryMenu.EMPTY_ARMOR_SLOT_SHIELD.
Parameters
Inventory inventoryboolean blPlayer player
ตัวอย่างใช้งาน
Inventory inventory = ...;
Player player = ...;
InventoryMenu instance = new InventoryMenu(inventory, true, player);
net.minecraft.world.inventory.InventoryMenu#isHotbarSlot(int)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:76 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hotbar Slot
ทำงานยังไง
คืนค่า: i >= 36 && i < 45 || i == 45.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#owner()
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:187 - Modifiers:
protected - Return:
Player
คืออะไร
ดำเนินการ owner ตาม implementation ของ InventoryMenu
ทำงานยังไง
คืนค่า: this.owner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:101 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ InventoryMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), getEquipmentSlotForItem(), moveItemStackTo(), onQuickCraft(), getType(). มีจุด return อย่างน้อย 10 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
InventoryMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.InventoryMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:87 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ InventoryMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: clearContent(), level(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:80 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ InventoryMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), slotChangedCraftingGrid().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.InventoryMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/InventoryMenu.java:96 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ InventoryMenu
ทำงานยังไง
คืนค่า: true.
Parameters
Player player
ตัวอย่างใช้งาน
ItemCombinerMenu
- Full name:
net.minecraft.world.inventory.ItemCombinerMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ItemCombinerMenu.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu#canMoveIntoInputSlots(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:169 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Move Into Input Slots
ทำงานยังไง
คืนค่า: true.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected boolean canMoveIntoInputSlots(ItemStack itemStack) {
return super.canMoveIntoInputSlots(itemStack);
}
net.minecraft.world.inventory.ItemCombinerMenu#createResult()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:88 - Modifiers:
public abstract - Return:
void
คืออะไร
สร้าง Result
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:173 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
คืนค่า: this.resultSlotIndex.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenu#isValidBlock(BlockState)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:32 - Modifiers:
protected abstract - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Block
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected boolean isValidBlock(BlockState blockState) {
return super.isValidBlock(blockState);
}
net.minecraft.world.inventory.ItemCombinerMenu#ItemCombinerMenu(MenuType<?>,int,Inventory,ContainerLevelAccess,ItemCombinerMenuSlotDefinition)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemCombinerMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: access, player, inputSlots, resultSlotIndex. เรียกต่อ: createContainer(), getNumOfInputSlots(), getResultSlotIndex(), createInputSlots(), createResultSlot(), addStandardInventorySlots().
Parameters
MenuType<?> menuTypeint iInventory inventoryContainerLevelAccess containerLevelAccessItemCombinerMenuSlotDefinition itemCombinerMenuSlotDefinition
ตัวอย่างใช้งาน
MenuType<?> menuType = ...;
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
ItemCombinerMenuSlotDefinition itemCombinerMenuSlotDefinition = ...;
ItemCombinerMenu instance = new ItemCombinerMenu(menuType, 0, inventory, containerLevelAccess, itemCombinerMenuSlotDefinition);
net.minecraft.world.inventory.ItemCombinerMenu#mayPickup(Player,boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:26 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ mayPickup ตาม implementation ของ ItemCombinerMenu
ทำงานยังไง
คืนค่า: true.
Parameters
Player playerboolean bl
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected boolean mayPickup(Player player, boolean bl) {
return super.mayPickup(player, bl);
}
net.minecraft.world.inventory.ItemCombinerMenu#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:30 - Modifiers:
protected abstract - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Player player = ...;
ItemStack itemStack = ...;
@Override
protected void onTake(Player player, ItemStack itemStack) {
super.onTake(player, itemStack);
}
net.minecraft.world.inventory.ItemCombinerMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:120 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ ItemCombinerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), getInventorySlotStart(), getUseRowEnd(), getResultSlot(), moveItemStackTo(). มีจุด return อย่างน้อย 7 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
ItemCombinerMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.ItemCombinerMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:108 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ ItemCombinerMenu
ทำงานยังไง
เรียกต่อ: execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:100 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ ItemCombinerMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createResult().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenu.java:114 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ ItemCombinerMenu
ทำงานยังไง
เรียกต่อ: evaluate(), isValidBlock(), getBlockState(), canInteractWithBlock(). คืนค่า: this.access .evaluate((level, blockPos) -> !this.isValidBlock(level.getBlockState(blockPos)) ? false : player.canInteractWithBlock(blockPos, 4.0), true).
Parameters
Player player
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition
- Full name:
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java - Type:
class - Modifiers:
public
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#create()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:21 - Modifiers:
public static - Return:
ItemCombinerMenuSlotDefinition.Builder
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: ItemCombinerMenuSlotDefinition.Builder. คืนค่า: new ItemCombinerMenuSlotDefinition.Builder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#getNumOfInputSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:37 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Num Of Input Slots
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.slots.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:29 - Modifiers:
public - Return:
ItemCombinerMenuSlotDefinition.SlotDefinition
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
คืนค่า: this.resultSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition instance = ...;
ItemCombinerMenuSlotDefinition.SlotDefinition result = instance.getResultSlot();
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#getResultSlotIndex()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:41 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Result Slot Index
ทำงานยังไง
เรียกต่อ: getNumOfInputSlots(). คืนค่า: this.getNumOfInputSlots().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:25 - Modifiers:
public - Return:
ItemCombinerMenuSlotDefinition.SlotDefinition
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.slots.get(i).
Parameters
int i
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition instance = ...;
ItemCombinerMenuSlotDefinition.SlotDefinition result = instance.getSlot(0);
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition#getSlots()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:33 - Modifiers:
public - Return:
List<ItemCombinerMenuSlotDefinition.SlotDefinition>
คืออะไร
อ่านค่า Slots
ทำงานยังไง
คืนค่า: this.slots.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition instance = ...;
List<ItemCombinerMenuSlotDefinition.SlotDefinition> result = instance.getSlots();
ItemCombinerMenuSlotDefinition$Builder
- Full name:
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition$Builder - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java - Type:
class - Modifiers:
public static
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition$Builder#build()
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:59 - Modifiers:
public - Return:
ItemCombinerMenuSlotDefinition
คืออะไร
สร้าง build
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(). สร้างออบเจ็กต์: IllegalArgumentException, ItemCombinerMenuSlotDefinition. คืนค่า: new ItemCombinerMenuSlotDefinition(this.inputSlots, this.resultSlot).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition.Builder instance = ...;
ItemCombinerMenuSlotDefinition result = instance.build();
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition$Builder#withResultSlot(int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:54 - Modifiers:
public - Return:
ItemCombinerMenuSlotDefinition.Builder
คืออะไร
ดำเนินการ withResultSlot ตาม implementation ของ ItemCombinerMenuSlotDefinition$Builder
ทำงานยังไง
แก้ state: resultSlot. เรียกต่อ: SlotDefinition(). สร้างออบเจ็กต์: ItemCombinerMenuSlotDefinition.SlotDefinition. คืนค่า: this.
Parameters
int iint jint k
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition.Builder instance = ...;
ItemCombinerMenuSlotDefinition.Builder result = instance.withResultSlot(0, 0, 0);
net.minecraft.world.inventory.ItemCombinerMenuSlotDefinition$Builder#withSlot(int,int,int,Predicate<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/inventory/ItemCombinerMenuSlotDefinition.java:49 - Modifiers:
public - Return:
ItemCombinerMenuSlotDefinition.Builder
คืออะไร
ดำเนินการ withSlot ตาม implementation ของ ItemCombinerMenuSlotDefinition$Builder
ทำงานยังไง
เรียกต่อ: add(), SlotDefinition(). สร้างออบเจ็กต์: ItemCombinerMenuSlotDefinition.SlotDefinition. คืนค่า: this.
Parameters
int iint jint kPredicate<ItemStack> predicate
ตัวอย่างใช้งาน
ItemCombinerMenuSlotDefinition.Builder instance = ...;
Predicate<ItemStack> predicate = ...;
ItemCombinerMenuSlotDefinition.Builder result = instance.withSlot(0, 0, 0, predicate);
LecternMenu
- Full name:
net.minecraft.world.inventory.LecternMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/LecternMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.LecternMenu#clickMenuButton(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:38 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clickMenuButton ตาม implementation ของ LecternMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: setData(), get(), mayBuild(), removeItemNoUpdate(), setChanged(), getInventory(), add(), drop(). มีจุด return อย่างน้อย 6 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
LecternMenu instance = ...;
Player player = ...;
boolean result = instance.clickMenuButton(player, 0);
net.minecraft.world.inventory.LecternMenu#getBook()
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:90 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Book
ทำงานยังไง
เรียกต่อ: getItem(). คืนค่า: this.lectern.getItem(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LecternMenu#getPage()
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:94 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Page
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.lecternData.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LecternMenu#LecternMenu(int)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LecternMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer, SimpleContainerData.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LecternMenu#LecternMenu(int,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LecternMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: lectern, lecternData. เรียกต่อ: checkContainerSize(), checkContainerDataCount(), addSlot(), setChanged(), slotsChanged(), addDataSlots(). สร้างออบเจ็กต์: Slot.
Parameters
int iContainer containerContainerData containerData
ตัวอย่างใช้งาน
Container container = ...;
ContainerData containerData = ...;
LecternMenu instance = new LecternMenu(0, container, containerData);
net.minecraft.world.inventory.LecternMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:74 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ LecternMenu
ทำงานยังไง
คืนค่า: ItemStack.EMPTY.
Parameters
Player playerint i
ตัวอย่างใช้งาน
LecternMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.LecternMenu#setData(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:79 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Data
ทำงานยังไง
เรียกต่อ: broadcastChanges().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LecternMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/LecternMenu.java:85 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ LecternMenu
ทำงานยังไง
คืนค่า: this.lectern.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
LoomMenu
- Full name:
net.minecraft.world.inventory.LoomMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/LoomMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.LoomMenu#clickMenuButton(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:116 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clickMenuButton ตาม implementation ของ LoomMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), set(), setupResultSlot(), get(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getBannerSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:281 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Banner Slot
ทำงานยังไง
คืนค่า: this.bannerSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getDyeSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:285 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Dye Slot
ทำงานยังไง
คืนค่า: this.dyeSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getPatternSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:289 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Pattern Slot
ทำงานยังไง
คืนค่า: this.patternSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getResultSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:293 - Modifiers:
public - Return:
Slot
คืออะไร
อ่านค่า Result Slot
ทำงานยังไง
คืนค่า: this.resultSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getSelectablePatterns()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:191 - Modifiers:
public - Return:
List<Holder<BannerPattern>>
คืออะไร
อ่านค่า Selectable Patterns
ทำงานยังไง
คืนค่า: this.selectablePatterns.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#getSelectedBannerPatternIndex()
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:195 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Selected Banner Pattern Index
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.selectedBannerPatternIndex.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#LoomMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:57 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LoomMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#LoomMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:61 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LoomMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: access, bannerSlot, dyeSlot, patternSlot, resultSlot, lastSoundTime. เรียกต่อ: addSlot(), mayPlace(), getItem(), onTake(), remove(), hasItem(), set(), execute(). สร้างออบเจ็กต์: Slot. มีจุด return อย่างน้อย 4 จุด.
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
LoomMenu instance = new LoomMenu(0, inventory, containerLevelAccess);
net.minecraft.world.inventory.LoomMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:203 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ LoomMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), onQuickCraft(), isEmpty(), setByPlayer(). มีจุด return อย่างน้อย 9 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
LoomMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.LoomMenu#registerUpdateListener(Runnable)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:199 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Update Listener
ทำงานยังไง
แก้ state: slotUpdateListener.
Parameters
Runnable runnable
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:256 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ LoomMenu
ทำงานยังไง
เรียกต่อ: execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:141 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ LoomMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: selectablePatterns. เรียกต่อ: getItem(), isEmpty(), get(), isValidPatternIndex(), getSelectablePatterns(), size(), set(), indexOf().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.LoomMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/LoomMenu.java:111 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ LoomMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.LOOM).
Parameters
Player player
ตัวอย่างใช้งาน
MenuConstructor
- Full name:
net.minecraft.world.inventory.MenuConstructor - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MenuConstructor.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.MenuConstructor#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/MenuConstructor.java:9 - Modifiers: ``
- Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
MenuConstructor instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
MenuType
- Full name:
net.minecraft.world.inventory.MenuType - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MenuType.java - Type:
class - Modifiers:
public - Implements:
FeatureElement
net.minecraft.world.inventory.MenuType#create(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/MenuType.java:53 - Modifiers:
public - Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: this.constructor.create(i, inventory).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MenuType#MenuType(MenuType.MenuSupplier<T>,FeatureFlagSet)
- Origin:
common - Source:
net/minecraft/world/inventory/MenuType.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MenuType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: constructor, requiredFeatures.
Parameters
MenuType.MenuSupplier<T> menuSupplierFeatureFlagSet featureFlagSet
ตัวอย่างใช้งาน
MenuType.MenuSupplier<T> menuSupplier = ...;
FeatureFlagSet featureFlagSet = ...;
MenuType instance = new MenuType(menuSupplier, featureFlagSet);
net.minecraft.world.inventory.MenuType#requiredFeatures()
- Origin:
common - Source:
net/minecraft/world/inventory/MenuType.java:57 - Modifiers:
public - Return:
FeatureFlagSet
คืออะไร
ดำเนินการ requiredFeatures ตาม implementation ของ MenuType
ทำงานยังไง
คืนค่า: this.requiredFeatures.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MenuType$MenuSupplier
- Full name:
net.minecraft.world.inventory.MenuType$MenuSupplier - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MenuType.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.MenuType$MenuSupplier#create(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/MenuType.java:63 - Modifiers: ``
- Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
MenuType.MenuSupplier instance = ...;
Inventory inventory = ...;
T result = instance.create(0, inventory);
MerchantContainer
- Full name:
net.minecraft.world.inventory.MerchantContainer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MerchantContainer.java - Type:
class - Modifiers:
public - Implements:
Container
net.minecraft.world.inventory.MerchantContainer#clearContent()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:137 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#getActiveOffer()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:127 - Modifiers:
public - Return:
MerchantOffer
คืออะไร
อ่านค่า Active Offer
ทำงานยังไง
คืนค่า: this.activeOffer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:25 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.itemStacks.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#getFutureXp()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:142 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Future Xp
ทำงานยังไง
คืนค่า: this.futureXp.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#getItem(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:41 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.itemStacks.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#isEmpty()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:30 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#MerchantContainer(Merchant)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MerchantContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: merchant.
Parameters
Merchant merchant
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:46 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), isEmpty(), getCount(), isPaymentSlot(), updateSellItem(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:65 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: takeItem(). คืนค่า: ContainerHelper.takeItem(this.itemStacks, i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#setChanged()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:84 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
เรียกต่อ: updateSellItem().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:70 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: set(), limitSize(), getMaxStackSize(), isPaymentSlot(), updateSellItem().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#setSelectionHint(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:132 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Selection Hint
ทำงานยังไง
แก้ state: selectionHint. เรียกต่อ: updateSellItem().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantContainer#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:79 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ MerchantContainer
ทำงานยังไง
เรียกต่อ: getTradingPlayer(). คืนค่า: this.merchant.getTradingPlayer() == player.
Parameters
Player player
ตัวอย่างใช้งาน
MerchantContainer instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.inventory.MerchantContainer#updateSellItem()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantContainer.java:89 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Sell Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: activeOffer, futureXp. เรียกต่อ: get(), isEmpty(), setItem(), getOffers(), getRecipeFor(), isOutOfStock(), assemble(), getXp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MerchantMenu
- Full name:
net.minecraft.world.inventory.MerchantMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MerchantMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.MerchantMenu#canRestock()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:91 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Restock
ทำงานยังไง
คืนค่า: this.canRestock.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:95 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: false.
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
MerchantMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.MerchantMenu#getFutureTraderXp()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:71 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Future Trader Xp
ทำงานยังไง
เรียกต่อ: getFutureXp(). คืนค่า: this.tradeContainer.getFutureXp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#getOffers()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:222 - Modifiers:
public - Return:
MerchantOffers
คืออะไร
อ่านค่า Offers
ทำงานยังไง
คืนค่า: this.trader.getOffers().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#getTraderLevel()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:79 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Trader Level
ทำงานยังไง
คืนค่า: this.merchantLevel.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#getTraderXp()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:67 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Trader Xp
ทำงานยังไง
เรียกต่อ: getVillagerXp(). คืนค่า: this.trader.getVillagerXp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#MerchantMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MerchantMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: ClientSideMerchant.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#MerchantMenu(int,Inventory,Merchant)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MerchantMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: trader, tradeContainer. เรียกต่อ: addSlot(), addStandardInventorySlots(). สร้างออบเจ็กต์: MerchantContainer, Slot, MerchantResultSlot.
Parameters
int iInventory inventoryMerchant merchant
ตัวอย่างใช้งาน
Inventory inventory = ...;
Merchant merchant = ...;
MerchantMenu instance = new MerchantMenu(0, inventory, merchant);
net.minecraft.world.inventory.MerchantMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:100 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ MerchantMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), moveItemStackTo(), onQuickCraft(), playTradeSound(), isEmpty(). มีจุด return อย่างน้อย 6 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
MerchantMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.MerchantMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:149 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ MerchantMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setTradingPlayer(), isClientSide(), isAlive(), hasDisconnected(), removeItemNoUpdate(), isEmpty(), drop(), getInventory().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#setCanRestock(boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:87 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Can Restock
ทำงานยังไง
แก้ state: canRestock.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#setMerchantLevel(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:83 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Merchant Level
ทำงานยังไง
แก้ state: merchantLevel.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#setOffers(MerchantOffers)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:218 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Offers
ทำงานยังไง
เรียกต่อ: overrideOffers().
Parameters
MerchantOffers merchantOffers
ตัวอย่างใช้งาน
MerchantMenu instance = ...;
MerchantOffers merchantOffers = ...;
instance.setOffers(merchantOffers);
net.minecraft.world.inventory.MerchantMenu#setSelectionHint(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:58 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Selection Hint
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#setShowProgressBar(boolean)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:48 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Show Progress Bar
ทำงานยังไง
แก้ state: showProgressBar.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#setXp(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:75 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Xp
ทำงานยังไง
เรียกต่อ: overrideXp().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#showProgressBar()
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:226 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ showProgressBar ตาม implementation ของ MerchantMenu
ทำงานยังไง
คืนค่า: this.showProgressBar.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:52 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ MerchantMenu
ทำงานยังไง
เรียกต่อ: updateSellItem().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:62 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ MerchantMenu
ทำงานยังไง
คืนค่า: this.trader.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.MerchantMenu#tryMoveItems(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantMenu.java:171 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tryMoveItems ตาม implementation ของ MerchantMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOffers(), size(), getItem(), isEmpty(), moveItemStackTo(), setItem(), get(), moveFromInventoryToPaymentSlot().
Parameters
int i
ตัวอย่างใช้งาน
MerchantResultSlot
- Full name:
net.minecraft.world.inventory.MerchantResultSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/MerchantResultSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.MerchantResultSlot#checkTakeAchievements(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:42 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Take Achievements
ทำงานยังไง
แก้ state: removeCount. เรียกต่อ: onCraftedBy(), level().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void checkTakeAchievements(ItemStack itemStack) {
super.checkTakeAchievements(itemStack);
}
net.minecraft.world.inventory.MerchantResultSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ MerchantResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
MerchantResultSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.MerchantResultSlot#MerchantResultSlot(Player,Merchant,MerchantContainer,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MerchantResultSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, merchant, slots.
Parameters
Player playerMerchant merchantMerchantContainer merchantContainerint iint jint k
ตัวอย่างใช้งาน
Player player = ...;
Merchant merchant = ...;
MerchantContainer merchantContainer = ...;
MerchantResultSlot instance = new MerchantResultSlot(player, merchant, merchantContainer, 0, 0, 0);
net.minecraft.world.inventory.MerchantResultSlot#onQuickCraft(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:36 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
แก้ state: removeCount. เรียกต่อ: checkTakeAchievements().
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void onQuickCraft(ItemStack itemStack, int i) {
super.onQuickCraft(itemStack, i);
}
net.minecraft.world.inventory.MerchantResultSlot#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:48 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: checkTakeAchievements(), getActiveOffer(), getItem(), take(), notifyTrade(), awardStat(), setItem(), overrideXp().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
MerchantResultSlot instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.onTake(player, itemStack);
net.minecraft.world.inventory.MerchantResultSlot#remove(int)
- Origin:
common - Source:
net/minecraft/world/inventory/MerchantResultSlot.java:27 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removeCount. เรียกต่อ: hasItem(), min(), getItem(), getCount(). คืนค่า: super.remove(i).
Parameters
int i
ตัวอย่างใช้งาน
NonInteractiveResultSlot
- Full name:
net.minecraft.world.inventory.NonInteractiveResultSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/NonInteractiveResultSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.NonInteractiveResultSlot#allowModification(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:42 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ allowModification ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
Player player
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
Player player = ...;
boolean result = instance.allowModification(player);
net.minecraft.world.inventory.NonInteractiveResultSlot#isFake()
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:66 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fake
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.NonInteractiveResultSlot#isHighlightable()
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:61 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Highlightable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.NonInteractiveResultSlot#mayPickup(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPickup ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
Player player
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
Player player = ...;
boolean result = instance.mayPickup(player);
net.minecraft.world.inventory.NonInteractiveResultSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:47 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.NonInteractiveResultSlot#NonInteractiveResultSlot(Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NonInteractiveResultSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Container containerint iint jint k
ตัวอย่างใช้งาน
Container container = ...;
NonInteractiveResultSlot instance = new NonInteractiveResultSlot(container, 0, 0, 0);
net.minecraft.world.inventory.NonInteractiveResultSlot#onQuickCraft(ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:13 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
instance.onQuickCraft(itemStack, itemStack2);
net.minecraft.world.inventory.NonInteractiveResultSlot#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:57 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.onTake(player, itemStack);
net.minecraft.world.inventory.NonInteractiveResultSlot#remove(int)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:52 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ remove
ทำงานยังไง
คืนค่า: ItemStack.EMPTY.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.NonInteractiveResultSlot#safeInsert(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:32 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeInsert ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: itemStack.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.safeInsert(itemStack);
net.minecraft.world.inventory.NonInteractiveResultSlot#safeInsert(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:37 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeInsert ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: this.safeInsert(itemStack).
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.safeInsert(itemStack, 0);
net.minecraft.world.inventory.NonInteractiveResultSlot#safeTake(int,int,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:27 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeTake ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
คืนค่า: ItemStack.EMPTY.
Parameters
int iint jPlayer player
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
Player player = ...;
ItemStack result = instance.safeTake(0, 0, player);
net.minecraft.world.inventory.NonInteractiveResultSlot#tryRemove(int,int,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/NonInteractiveResultSlot.java:22 - Modifiers:
public - Return:
Optional<ItemStack>
คืออะไร
ดำเนินการ tryRemove ตาม implementation ของ NonInteractiveResultSlot
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: Optional.empty().
Parameters
int iint jPlayer player
ตัวอย่างใช้งาน
NonInteractiveResultSlot instance = ...;
Player player = ...;
Optional<ItemStack> result = instance.tryRemove(0, 0, player);
PlayerEnderChestContainer
- Full name:
net.minecraft.world.inventory.PlayerEnderChestContainer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/PlayerEnderChestContainer.java - Type:
class - Modifiers:
public - Extends:
SimpleContainer
net.minecraft.world.inventory.PlayerEnderChestContainer#createTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:43 - Modifiers:
public - Return:
ListTag
คืออะไร
สร้าง Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getContainerSize(), getItem(), isEmpty(), putByte(), add(), save(). สร้างออบเจ็กต์: ListTag, CompoundTag. คืนค่า: listTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
PlayerEnderChestContainer instance = ...;
HolderLookup.Provider provider = ...;
ListTag result = instance.createTag(provider);
net.minecraft.world.inventory.PlayerEnderChestContainer#fromTag(ListTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:28 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fromTag ตาม implementation ของ PlayerEnderChestContainer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getContainerSize(), setItem(), size(), getCompound(), getByte(), parse(), orElse().
Parameters
ListTag listTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
PlayerEnderChestContainer instance = ...;
ListTag listTag = ...;
HolderLookup.Provider provider = ...;
instance.fromTag(listTag, provider);
net.minecraft.world.inventory.PlayerEnderChestContainer#isActiveChest(EnderChestBlockEntity)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Active Chest
ทำงานยังไง
แก้ state: activeChest. คืนค่า: this.activeChest == enderChestBlockEntity.
Parameters
EnderChestBlockEntity enderChestBlockEntity
ตัวอย่างใช้งาน
PlayerEnderChestContainer instance = ...;
EnderChestBlockEntity enderChestBlockEntity = ...;
boolean result = instance.isActiveChest(enderChestBlockEntity);
net.minecraft.world.inventory.PlayerEnderChestContainer#PlayerEnderChestContainer()
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PlayerEnderChestContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.PlayerEnderChestContainer#setActiveChest(EnderChestBlockEntity)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:20 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Active Chest
ทำงานยังไง
แก้ state: activeChest.
Parameters
EnderChestBlockEntity enderChestBlockEntity
ตัวอย่างใช้งาน
PlayerEnderChestContainer instance = ...;
EnderChestBlockEntity enderChestBlockEntity = ...;
instance.setActiveChest(enderChestBlockEntity);
net.minecraft.world.inventory.PlayerEnderChestContainer#startOpen(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:64 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.PlayerEnderChestContainer#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:59 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ PlayerEnderChestContainer
ทำงานยังไง
คืนค่า: this.activeChest != null && !this.activeChest.stillValid(player) ? false : super.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
PlayerEnderChestContainer instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.inventory.PlayerEnderChestContainer#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/PlayerEnderChestContainer.java:73 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: activeChest.
Parameters
Player player
ตัวอย่างใช้งาน
RecipeBookMenu
- Full name:
net.minecraft.world.inventory.RecipeBookMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/RecipeBookMenu.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu#fillCraftSlotsStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeBookMenu.java:17 - Modifiers:
public abstract - Return:
void
คืออะไร
ดำเนินการ fillCraftSlotsStackedContents ตาม implementation ของ RecipeBookMenu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
RecipeBookMenu instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillCraftSlotsStackedContents(stackedItemContents);
net.minecraft.world.inventory.RecipeBookMenu#getRecipeBookType()
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeBookMenu.java:19 - Modifiers:
public abstract - Return:
RecipeBookType
คืออะไร
อ่านค่า Recipe Book Type
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.RecipeBookMenu#handlePlacement(boolean,boolean,RecipeHolder<?>,ServerLevel,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeBookMenu.java:13 - Modifiers:
public abstract - Return:
RecipeBookMenu.PostPlaceAction
คืออะไร
จัดการ Placement
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
boolean blboolean bl2RecipeHolder<?> recipeHolderServerLevel serverLevelInventory inventory
ตัวอย่างใช้งาน
RecipeBookMenu instance = ...;
RecipeHolder<?> recipeHolder = ...;
ServerLevel serverLevel = ...;
Inventory inventory = ...;
RecipeBookMenu.PostPlaceAction result = instance.handlePlacement(true, true, recipeHolder, serverLevel, inventory);
net.minecraft.world.inventory.RecipeBookMenu#RecipeBookMenu(MenuType<?>,int)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeBookMenu.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RecipeBookMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
MenuType<?> menuTypeint i
ตัวอย่างใช้งาน
RecipeCraftingHolder
- Full name:
net.minecraft.world.inventory.RecipeCraftingHolder - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/RecipeCraftingHolder.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.RecipeCraftingHolder#awardUsedRecipes(Player,List<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeCraftingHolder.java:18 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ awardUsedRecipes ตาม implementation ของ RecipeCraftingHolder
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRecipeUsed(), triggerRecipeCrafted(), value(), isSpecial(), awardRecipes(), singleton(), setRecipeUsed().
Parameters
Player playerList<ItemStack> list
ตัวอย่างใช้งาน
RecipeCraftingHolder instance = ...;
Player player = ...;
List<ItemStack> list = ...;
instance.awardUsedRecipes(player, list);
net.minecraft.world.inventory.RecipeCraftingHolder#getRecipeUsed()
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeCraftingHolder.java:15 - Modifiers: ``
- Return:
RecipeHolder<?>
คืออะไร
อ่านค่า Recipe Used
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.RecipeCraftingHolder#setRecipeUsed(RecipeHolder<?>)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeCraftingHolder.java:13 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Recipe Used
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
RecipeHolder<?> recipeHolder
ตัวอย่างใช้งาน
RecipeCraftingHolder instance = ...;
RecipeHolder<?> recipeHolder = ...;
instance.setRecipeUsed(recipeHolder);
net.minecraft.world.inventory.RecipeCraftingHolder#setRecipeUsed(ServerPlayer,RecipeHolder<?>)
- Origin:
common - Source:
net/minecraft/world/inventory/RecipeCraftingHolder.java:29 - Modifiers:
default - Return:
boolean
คืออะไร
กำหนดค่า Recipe Used
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: value(), isSpecial(), serverLevel(), getGameRules(), getBoolean(), getRecipeBook(), contains(), id(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerPlayer serverPlayerRecipeHolder<?> recipeHolder
ตัวอย่างใช้งาน
RecipeCraftingHolder instance = ...;
ServerPlayer serverPlayer = ...;
RecipeHolder<?> recipeHolder = ...;
boolean result = instance.setRecipeUsed(serverPlayer, recipeHolder);
ResultContainer
- Full name:
net.minecraft.world.inventory.ResultContainer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ResultContainer.java - Type:
class - Modifiers:
public - Implements:
Container,RecipeCraftingHolder
net.minecraft.world.inventory.ResultContainer#clearContent()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:61 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:16 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#getItem(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:32 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.itemStacks.get(0).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#getRecipeUsed()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:71 - Modifiers:
public - Return:
RecipeHolder<?>
คืออะไร
อ่านค่า Recipe Used
ทำงานยังไง
คืนค่า: this.recipeUsed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#isEmpty()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:21 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:37 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
เรียกต่อ: takeItem(). คืนค่า: ContainerHelper.takeItem(this.itemStacks, 0).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:42 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: takeItem(). คืนค่า: ContainerHelper.takeItem(this.itemStacks, 0).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#setChanged()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:52 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:47 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: set().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultContainer#setRecipeUsed(RecipeHolder<?>)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:66 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Recipe Used
ทำงานยังไง
แก้ state: recipeUsed.
Parameters
RecipeHolder<?> recipeHolder
ตัวอย่างใช้งาน
ResultContainer instance = ...;
RecipeHolder<?> recipeHolder = ...;
instance.setRecipeUsed(recipeHolder);
net.minecraft.world.inventory.ResultContainer#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultContainer.java:56 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ ResultContainer
ทำงานยังไง
คืนค่า: true.
Parameters
Player player
ตัวอย่างใช้งาน
ResultSlot
- Full name:
net.minecraft.world.inventory.ResultSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ResultSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.ResultSlot#checkTakeAchievements(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:49 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Take Achievements
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removeCount. เรียกต่อ: onCraftedBy(), level(), awardUsedRecipes(), getItems().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void checkTakeAchievements(ItemStack itemStack) {
super.checkTakeAchievements(itemStack);
}
net.minecraft.world.inventory.ResultSlot#isFake()
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:114 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fake
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ ResultSlot
ทำงานยังไง
คืนค่า: false.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ResultSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.ResultSlot#onQuickCraft(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:38 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
แก้ state: removeCount. เรียกต่อ: checkTakeAchievements().
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void onQuickCraft(ItemStack itemStack, int i) {
super.onQuickCraft(itemStack, i);
}
net.minecraft.world.inventory.ResultSlot#onSwapCraft(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:44 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Swap Craft
ทำงานยังไง
แก้ state: removeCount.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultSlot#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:81 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: checkTakeAchievements(), asPositionedCraftInput(), input(), left(), top(), getRemainingItems(), level(), height().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
ResultSlot instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.onTake(player, itemStack);
net.minecraft.world.inventory.ResultSlot#remove(int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:29 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removeCount. เรียกต่อ: hasItem(), min(), getItem(), getCount(). คืนค่า: super.remove(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ResultSlot#ResultSlot(Player,CraftingContainer,Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ResultSlot.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResultSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, craftSlots.
Parameters
Player playerCraftingContainer craftingContainerContainer containerint iint jint k
ตัวอย่างใช้งาน
Player player = ...;
CraftingContainer craftingContainer = ...;
Container container = ...;
ResultSlot instance = new ResultSlot(player, craftingContainer, container, 0, 0, 0);
ShulkerBoxMenu
- Full name:
net.minecraft.world.inventory.ShulkerBoxMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ShulkerBoxMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.ShulkerBoxMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxMenu.java:39 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ ShulkerBoxMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), getContainerSize(), moveItemStackTo(), size(), isEmpty(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
ShulkerBoxMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.ShulkerBoxMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxMenu.java:64 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ ShulkerBoxMenu
ทำงานยังไง
เรียกต่อ: stopOpen().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ShulkerBoxMenu#ShulkerBoxMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxMenu.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ShulkerBoxMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SimpleContainer.
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.ShulkerBoxMenu#ShulkerBoxMenu(int,Inventory,Container)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxMenu.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ShulkerBoxMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. แก้ state: container. เรียกต่อ: checkContainerSize(), startOpen(), addSlot(), addStandardInventorySlots(). สร้างออบเจ็กต์: ShulkerBoxSlot.
Parameters
int iInventory inventoryContainer container
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ShulkerBoxMenu instance = new ShulkerBoxMenu(0, inventory, container);
net.minecraft.world.inventory.ShulkerBoxMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxMenu.java:34 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ ShulkerBoxMenu
ทำงานยังไง
คืนค่า: this.container.stillValid(player).
Parameters
Player player
ตัวอย่างใช้งาน
ShulkerBoxSlot
- Full name:
net.minecraft.world.inventory.ShulkerBoxSlot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/ShulkerBoxSlot.java - Type:
class - Modifiers:
public - Extends:
Slot
net.minecraft.world.inventory.ShulkerBoxSlot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxSlot.java:11 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ ShulkerBoxSlot
ทำงานยังไง
เรียกต่อ: getItem(), canFitInsideContainerItems(). คืนค่า: itemStack.getItem().canFitInsideContainerItems().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ShulkerBoxSlot instance = ...;
ItemStack itemStack = ...;
boolean result = instance.mayPlace(itemStack);
net.minecraft.world.inventory.ShulkerBoxSlot#ShulkerBoxSlot(Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/ShulkerBoxSlot.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ShulkerBoxSlot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Container containerint iint jint k
ตัวอย่างใช้งาน
SimpleContainerData
- Full name:
net.minecraft.world.inventory.SimpleContainerData - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/SimpleContainerData.java - Type:
class - Modifiers:
public - Implements:
ContainerData
net.minecraft.world.inventory.SimpleContainerData#get(int)
- Origin:
common - Source:
net/minecraft/world/inventory/SimpleContainerData.java:10 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
คืนค่า: this.ints[i].
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SimpleContainerData#getCount()
- Origin:
common - Source:
net/minecraft/world/inventory/SimpleContainerData.java:20 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Count
ทำงานยังไง
คืนค่า: this.ints.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SimpleContainerData#set(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/SimpleContainerData.java:15 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SimpleContainerData#SimpleContainerData(int)
- Origin:
common - Source:
net/minecraft/world/inventory/SimpleContainerData.java:6 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleContainerData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: ints.
Parameters
int i
ตัวอย่างใช้งาน
Slot
- Full name:
net.minecraft.world.inventory.Slot - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/Slot.java - Type:
class - Modifiers:
public
net.minecraft.world.inventory.Slot#allowModification(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:152 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ allowModification ตาม implementation ของ Slot
ทำงานยังไง
เรียกต่อ: mayPickup(), mayPlace(), getItem(). คืนค่า: this.mayPickup(player) && this.mayPlace(this.getItem()).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#checkTakeAchievements(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:37 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Take Achievements
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void checkTakeAchievements(ItemStack itemStack) {
super.checkTakeAchievements(itemStack);
}
net.minecraft.world.inventory.Slot#getContainerSlot()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:156 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Slot
ทำงานยังไง
คืนค่า: this.slot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#getItem()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:48 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
คืนค่า: this.container.getItem(this.slot).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#getMaxStackSize()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:73 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Stack Size
ทำงานยังไง
คืนค่า: this.container.getMaxStackSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#getMaxStackSize(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:77 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Stack Size
ทำงานยังไง
เรียกต่อ: min(). คืนค่า: Math.min(this.getMaxStackSize(), itemStack.getMaxStackSize()).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#getNoItemIcon()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:81 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า No Item Icon
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#hasItem()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:52 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Item
ทำงานยังไง
เรียกต่อ: getItem(), isEmpty(). คืนค่า: !this.getItem().isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#isActive()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:94 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Active
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#isFake()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:164 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fake
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#isHighlightable()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:160 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Highlightable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#mayPickup(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:90 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPickup ตาม implementation ของ Slot
ทำงานยังไง
คืนค่า: true.
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#mayPlace(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:44 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayPlace ตาม implementation ของ Slot
ทำงานยังไง
คืนค่า: true.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#onQuickCraft(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:31 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void onQuickCraft(ItemStack itemStack, int i) {
super.onQuickCraft(itemStack, i);
}
net.minecraft.world.inventory.Slot#onQuickCraft(ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:24 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Quick Craft
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCount().
Parameters
ItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
Slot instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
instance.onQuickCraft(itemStack, itemStack2);
net.minecraft.world.inventory.Slot#onSwapCraft(int)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:34 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Swap Craft
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:40 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
เรียกต่อ: setChanged().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Slot instance = ...;
Player player = ...;
ItemStack itemStack = ...;
instance.onTake(player, itemStack);
net.minecraft.world.inventory.Slot#remove(int)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:86 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ remove
ทำงานยังไง
เรียกต่อ: removeItem(). คืนค่า: this.container.removeItem(this.slot, i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#safeInsert(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:126 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeInsert ตาม implementation ของ Slot
ทำงานยังไง
เรียกต่อ: getCount(). คืนค่า: this.safeInsert(itemStack, itemStack.getCount()).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#safeInsert(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:130 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeInsert ตาม implementation ของ Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), mayPlace(), getItem(), min(), getCount(), getMaxStackSize(), setByPlayer(), split(). มีจุด return อย่างน้อย 3 จุด.
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
Slot instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.safeInsert(itemStack, 0);
net.minecraft.world.inventory.Slot#safeTake(int,int,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:120 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ safeTake ตาม implementation ของ Slot
ทำงานยังไง
เรียกต่อ: tryRemove(), ifPresent(), onTake(), orElse(). คืนค่า: optional.orElse(ItemStack.EMPTY).
Parameters
int iint jPlayer player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#set(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:64 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: setItem(), setChanged().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#setByPlayer(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:56 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า By Player
ทำงานยังไง
เรียกต่อ: getItem().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#setByPlayer(ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:60 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า By Player
ทำงานยังไง
เรียกต่อ: set().
Parameters
ItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
Slot instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
instance.setByPlayer(itemStack, itemStack2);
net.minecraft.world.inventory.Slot#setChanged()
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:69 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#Slot(Container,int,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Slot ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: container, slot, x, y.
Parameters
Container containerint iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.inventory.Slot#tryRemove(int,int,Player)
- Origin:
common - Source:
net/minecraft/world/inventory/Slot.java:98 - Modifiers:
public - Return:
Optional<ItemStack>
คืออะไร
ดำเนินการ tryRemove ตาม implementation ของ Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: mayPickup(), empty(), allowModification(), getItem(), getCount(), min(), remove(), isEmpty(). มีจุด return อย่างน้อย 4 จุด.
Parameters
int iint jPlayer player
ตัวอย่างใช้งาน
Slot instance = ...;
Player player = ...;
Optional<ItemStack> result = instance.tryRemove(0, 0, player);
SlotRange
- Full name:
net.minecraft.world.inventory.SlotRange - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/SlotRange.java - Type:
interface - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.inventory.SlotRange#of(String,IntList)
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRange.java:13 - Modifiers:
static - Return:
SlotRange
คืออะไร
ดำเนินการ of ตาม implementation ของ SlotRange
ทำงานยังไง
เรียกต่อ: slots(), getSerializedName(), toString(). สร้างออบเจ็กต์: SlotRange. มีจุด return อย่างน้อย 3 จุด.
Parameters
String stringIntList intList
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SlotRange#size()
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRange.java:9 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ SlotRange
ทำงานยังไง
เรียกต่อ: slots(). คืนค่า: this.slots().size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SlotRange#slots()
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRange.java:7 - Modifiers: ``
- Return:
IntList
คืออะไร
ดำเนินการ slots ตาม implementation ของ SlotRange
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SlotRanges
- Full name:
net.minecraft.world.inventory.SlotRanges - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/SlotRanges.java - Type:
class - Modifiers:
public
net.minecraft.world.inventory.SlotRanges#allNames()
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRanges.java:87 - Modifiers:
public static - Return:
Stream<String>
คืออะไร
ดำเนินการ allNames ตาม implementation ของ SlotRanges
ทำงานยังไง
เรียกต่อ: stream(), map(). คืนค่า: SLOTS.stream().map(StringRepresentable::getSerializedName).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SlotRanges#nameToIds(String)
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRanges.java:82 - Modifiers:
public static - Return:
SlotRange
คืออะไร
ดำเนินการ nameToIds ตาม implementation ของ SlotRanges
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: NAME_LOOKUP.apply(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SlotRanges#singleSlotNames()
- Origin:
common - Source:
net/minecraft/world/inventory/SlotRanges.java:91 - Modifiers:
public static - Return:
Stream<String>
คืออะไร
ดำเนินการ singleSlotNames ตาม implementation ของ SlotRanges
ทำงานยังไง
เรียกต่อ: stream(), filter(), size(), map(). คืนค่า: SLOTS.stream().filter(slotRange -> slotRange.size() == 1).map(StringRepresentable::getSerializedName).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SmithingMenu
- Full name:
net.minecraft.world.inventory.SmithingMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/SmithingMenu.java - Type:
class - Modifiers:
public - Extends:
ItemCombinerMenu
net.minecraft.world.inventory.SmithingMenu#canMoveIntoInputSlots(ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:130 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Move Into Input Slots
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: test(), getSlot(), hasItem(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
SmithingMenu instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canMoveIntoInputSlots(itemStack);
net.minecraft.world.inventory.SmithingMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:125 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: slot.container != this.resultSlots && super.canTakeItemForPickAll(itemStack, slot).
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
SmithingMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.SmithingMenu#createResult()
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:105 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Result
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createRecipeInput(), recipeAccess(), getRecipeFor(), empty(), ifPresentOrElse(), value(), assemble(), registryAccess().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SmithingMenu#hasRecipeError()
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:139 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Recipe Error
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.hasRecipeError.get() > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SmithingMenu#isValidBlock(BlockState)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:65 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Block
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: blockState.is(Blocks.SMITHING_TABLE).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected boolean isValidBlock(BlockState blockState) {
return super.isValidBlock(blockState);
}
net.minecraft.world.inventory.SmithingMenu#onTake(Player,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:70 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Take
ทำงานยังไง
เรียกต่อ: onCraftedBy(), level(), getCount(), awardUsedRecipes(), getRelevantItems(), shrinkStackInSlot(), execute(), levelEvent().
Parameters
Player playerItemStack itemStack
ตัวอย่างใช้งาน
Player player = ...;
ItemStack itemStack = ...;
@Override
protected void onTake(Player player, ItemStack itemStack) {
super.onTake(player, itemStack);
}
net.minecraft.world.inventory.SmithingMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:96 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ SmithingMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSlot(), hasItem(), getResultSlot(), set().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SmithingMenu#SmithingMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:36 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SmithingMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SmithingMenu#SmithingMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/SmithingMenu.java:40 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SmithingMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: level().
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
SmithingMenu instance = new SmithingMenu(0, inventory, containerLevelAccess);
SmokerMenu
- Full name:
net.minecraft.world.inventory.SmokerMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/SmokerMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceMenu
net.minecraft.world.inventory.SmokerMenu#SmokerMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/SmokerMenu.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SmokerMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.SmokerMenu#SmokerMenu(int,Inventory,Container,ContainerData)
- Origin:
common - Source:
net/minecraft/world/inventory/SmokerMenu.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SmokerMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventoryContainer containerContainerData containerData
ตัวอย่างใช้งาน
Inventory inventory = ...;
Container container = ...;
ContainerData containerData = ...;
SmokerMenu instance = new SmokerMenu(0, inventory, container, containerData);
StackedContentsCompatible
- Full name:
net.minecraft.world.inventory.StackedContentsCompatible - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/StackedContentsCompatible.java - Type:
interface - Modifiers:
public
net.minecraft.world.inventory.StackedContentsCompatible#fillStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/inventory/StackedContentsCompatible.java:7 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ fillStackedContents ตาม implementation ของ StackedContentsCompatible
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
StackedContentsCompatible instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillStackedContents(stackedItemContents);
StonecutterMenu
- Full name:
net.minecraft.world.inventory.StonecutterMenu - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/StonecutterMenu.java - Type:
class - Modifiers:
public - Extends:
AbstractContainerMenu
net.minecraft.world.inventory.StonecutterMenu#canTakeItemForPickAll(ItemStack,Slot)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:174 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item For Pick All
ทำงานยังไง
คืนค่า: slot.container != this.resultContainer && super.canTakeItemForPickAll(itemStack, slot).
Parameters
ItemStack itemStackSlot slot
ตัวอย่างใช้งาน
StonecutterMenu instance = ...;
ItemStack itemStack = ...;
Slot slot = ...;
boolean result = instance.canTakeItemForPickAll(itemStack, slot);
net.minecraft.world.inventory.StonecutterMenu#clickMenuButton(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:109 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clickMenuButton ตาม implementation ของ StonecutterMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), isValidRecipeIndex(), set(), setupResultSlot(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
StonecutterMenu instance = ...;
Player player = ...;
boolean result = instance.clickMenuButton(player, 0);
net.minecraft.world.inventory.StonecutterMenu#getNumberOfVisibleRecipes()
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:96 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Number Of Visible Recipes
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.recipesForInput.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#getSelectedRecipeIndex()
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:88 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Selected Recipe Index
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.selectedRecipeIndex.get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#getType()
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:165 - Modifiers:
public - Return:
MenuType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: MenuType.STONECUTTER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#getVisibleRecipes()
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:92 - Modifiers:
public - Return:
SelectableRecipe.SingleInputSet<StonecutterRecipe>
คืออะไร
อ่านค่า Visible Recipes
ทำงานยังไง
คืนค่า: this.recipesForInput.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StonecutterMenu instance = ...;
SelectableRecipe.SingleInputSet<StonecutterRecipe> result = instance.getVisibleRecipes();
net.minecraft.world.inventory.StonecutterMenu#hasInputItem()
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:100 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Input Item
ทำงานยังไง
เรียกต่อ: hasItem(), isEmpty(). คืนค่า: this.inputSlot.hasItem() && !this.recipesForInput.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#quickMoveStack(Player,int)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:179 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ quickMoveStack ตาม implementation ของ StonecutterMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), hasItem(), getItem(), copy(), onCraftedBy(), level(), moveItemStackTo(), onQuickCraft(). มีจุด return อย่างน้อย 7 จุด.
Parameters
Player playerint i
ตัวอย่างใช้งาน
StonecutterMenu instance = ...;
Player player = ...;
ItemStack result = instance.quickMoveStack(player, 0);
net.minecraft.world.inventory.StonecutterMenu#registerUpdateListener(Runnable)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:170 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Update Listener
ทำงานยังไง
แก้ state: slotUpdateListener.
Parameters
Runnable runnable
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#removed(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:230 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ removed ตาม implementation ของ StonecutterMenu
ทำงานยังไง
เรียกต่อ: removeItemNoUpdate(), execute(), clearContainer().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#slotsChanged(Container)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:127 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ slotsChanged ตาม implementation ของ StonecutterMenu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: input. เรียกต่อ: getItem(), is(), copy(), setupRecipeList().
Parameters
Container container
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:104 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ StonecutterMenu
ทำงานยังไง
คืนค่า: stillValid(this.access, player, Blocks.STONECUTTER).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#StonecutterMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StonecutterMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
net.minecraft.world.inventory.StonecutterMenu#StonecutterMenu(int,Inventory,ContainerLevelAccess)
- Origin:
common - Source:
net/minecraft/world/inventory/StonecutterMenu.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StonecutterMenu ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: access, level, inputSlot, resultSlot, lastSoundTime. เรียกต่อ: level(), addSlot(), mayPlace(), onTake(), onCraftedBy(), getCount(), awardUsedRecipes(), getRelevantItems(). สร้างออบเจ็กต์: Slot. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iInventory inventoryContainerLevelAccess containerLevelAccess
ตัวอย่างใช้งาน
Inventory inventory = ...;
ContainerLevelAccess containerLevelAccess = ...;
StonecutterMenu instance = new StonecutterMenu(0, inventory, containerLevelAccess);
TransientCraftingContainer
- Full name:
net.minecraft.world.inventory.TransientCraftingContainer - Package:
net.minecraft.world.inventory - Source:
common—net/minecraft/world/inventory/TransientCraftingContainer.java - Type:
class - Modifiers:
public - Implements:
CraftingContainer
net.minecraft.world.inventory.TransientCraftingContainer#clearContent()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:78 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#fillStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:98 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillStackedContents ตาม implementation ของ TransientCraftingContainer
ทำงานยังไง
มีการวนลูป. เรียกต่อ: accountSimpleStack().
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
TransientCraftingContainer instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillStackedContents(stackedItemContents);
net.minecraft.world.inventory.TransientCraftingContainer#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:27 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.items.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#getHeight()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:83 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#getItem(int)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:43 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: getContainerSize(), get(). คืนค่า: i >= this.getContainerSize() ? ItemStack.EMPTY : this.items.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#getItems()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:93 - Modifiers:
public - Return:
List<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
เรียกต่อ: copyOf(). คืนค่า: List.copyOf(this.items).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#getWidth()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:88 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Width
ทำงานยังไง
คืนค่า: this.width.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#isEmpty()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:53 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), slotsChanged(). คืนค่า: itemStack.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:48 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: takeItem(). คืนค่า: ContainerHelper.takeItem(this.items, i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#setChanged()
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:69 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.inventory.TransientCraftingContainer#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:63 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: set(), slotsChanged().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
TransientCraftingContainer instance = ...;
ItemStack itemStack = ...;
instance.setItem(0, itemStack);
net.minecraft.world.inventory.TransientCraftingContainer#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ TransientCraftingContainer
ทำงานยังไง
คืนค่า: true.
Parameters
Player player
ตัวอย่างใช้งาน
TransientCraftingContainer instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.inventory.TransientCraftingContainer#TransientCraftingContainer(AbstractContainerMenu,int,int)
- Origin:
common - Source:
net/minecraft/world/inventory/TransientCraftingContainer.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TransientCraftingContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: withSize().
Parameters
AbstractContainerMenu abstractContainerMenuint iint j
ตัวอย่างใช้งาน
AbstractContainerMenu abstractContainerMenu = ...;
TransientCraftingContainer instance = new TransientCraftingContainer(abstractContainerMenu, 0, 0);