Package net.minecraft.world.level.block.entity
Part 1/1
AbstractFurnaceBlockEntity
- Full name:
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java - Type:
class - Modifiers:
public abstract - Extends:
BaseContainerBlockEntity - Implements:
WorldlyContainer,RecipeCraftingHolder,StackedContentsCompatible
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#AbstractFurnaceBlockEntity(BlockEntityType<?>,BlockPos,BlockState,RecipeType<? extends AbstractCookingRecipe>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:103 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractFurnaceBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: quickCheck. เรียกต่อ: createCheck().
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockStateRecipeType<? extends AbstractCookingRecipe> recipeType
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
RecipeType<? extends AbstractCookingRecipe> recipeType = ...;
AbstractFurnaceBlockEntity instance = new AbstractFurnaceBlockEntity(blockEntityType, blockPos, blockState, recipeType);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#awardUsedRecipes(Player,List<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:346 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ awardUsedRecipes ตาม implementation ของ AbstractFurnaceBlockEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Player playerList<ItemStack> list
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
Player player = ...;
List<ItemStack> list = ...;
instance.awardUsedRecipes(player, list);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#awardUsedRecipesAndPopExperience(ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:350 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ awardUsedRecipesAndPopExperience ตาม implementation ของ AbstractFurnaceBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getRecipesToAwardAndPopExperience(), serverLevel(), position(), awardRecipes(), triggerRecipeCrafted(), clear().
Parameters
ServerPlayer serverPlayer
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ServerPlayer serverPlayer = ...;
instance.awardUsedRecipesAndPopExperience(serverPlayer);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#canPlaceItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:318 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), fuelValues(), isFuel(), is(). มีจุด return อย่างน้อย 3 จุด.
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canPlaceItem(0, itemStack);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#canPlaceItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:280 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item Through Face
ทำงานยังไง
เรียกต่อ: canPlaceItem(). คืนค่า: this.canPlaceItem(i, itemStack).
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canPlaceItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#canTakeItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:285 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item Through Face
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: direction == Direction.DOWN && i == 1 ? itemStack.is(Items.WATER_BUCKET) || itemStack.is(Items.BUCKET) : true.
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canTakeItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#fillStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:386 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillStackedContents ตาม implementation ของ AbstractFurnaceBlockEntity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: accountStack().
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillStackedContents(stackedItemContents);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getBurnDuration(FuelValues,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:262 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Burn Duration
ทำงานยังไง
เรียกต่อ: burnDuration(). คืนค่า: fuelValues.burnDuration(itemStack).
Parameters
FuelValues fuelValuesItemStack itemStack
ตัวอย่างใช้งาน
FuelValues fuelValues = ...;
ItemStack itemStack = ...;
@Override
protected int getBurnDuration(FuelValues fuelValues, ItemStack itemStack) {
return super.getBurnDuration(fuelValues, itemStack);
}
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:290 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.items.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:295 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getRecipesToAwardAndPopExperience(ServerLevel,Vec3)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:363 - Modifiers:
public - Return:
List<RecipeHolder<?>>
คืออะไร
อ่านค่า Recipes To Award And Pop Experience
ทำงานยังไง
มีการวนลูป. เรียกต่อ: newArrayList(), reference2IntEntrySet(), recipeAccess(), byKey(), getKey(), ifPresent(), add(), createExperience(). คืนค่า: list.
Parameters
ServerLevel serverLevelVec3 vec3
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ServerLevel serverLevel = ...;
Vec3 vec3 = ...;
List<RecipeHolder<?>> result = instance.getRecipesToAwardAndPopExperience(serverLevel, vec3);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getRecipeUsed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:340 - Modifiers:
public - Return:
RecipeHolder<?>
คืออะไร
อ่านค่า Recipe Used
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#getSlotsForFace(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:271 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า Slots For Face
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
Direction direction
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
Direction direction = ...;
int[] result = instance.getSlotsForFace(direction);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:114 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
มีการวนลูป. แก้ state: items, cookingTimer, cookingTotalTime, litTimeRemaining, litTotalTime. เรียกต่อ: withSize(), getContainerSize(), loadAllItems(), getShort(), getCompound(), getAllKeys(), put(), create().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:130 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: putShort(), saveAllItems(), forEach(), putInt(), location(), toString(), put(). สร้างออบเจ็กต์: CompoundTag.
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#serverTick(ServerLevel,BlockPos,BlockState,AbstractFurnaceBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:143 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ AbstractFurnaceBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isLit(), get(), isEmpty(), getRecipeFor(), orElse(), getMaxStackSize(), canBurn(), registryAccess(). สร้างออบเจ็กต์: SingleRecipeInput.
Parameters
ServerLevel serverLevelBlockPos blockPosBlockState blockStateAbstractFurnaceBlockEntity abstractFurnaceBlockEntity
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
AbstractFurnaceBlockEntity abstractFurnaceBlockEntity = ...;
AbstractFurnaceBlockEntity.serverTick(serverLevel, blockPos, blockState, abstractFurnaceBlockEntity);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:305 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: cookingTotalTime, cookingTimer. เรียกต่อ: get(), isEmpty(), isSameItemSameComponents(), set(), limitSize(), getMaxStackSize(), getTotalCookTime(), setChanged().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
ItemStack itemStack = ...;
instance.setItem(0, itemStack);
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:300 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity#setRecipeUsed(RecipeHolder<?>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java:332 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Recipe Used
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: id(), addTo().
Parameters
RecipeHolder<?> recipeHolder
ตัวอย่างใช้งาน
AbstractFurnaceBlockEntity instance = ...;
RecipeHolder<?> recipeHolder = ...;
instance.setRecipeUsed(recipeHolder);
BannerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BannerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BannerBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Nameable
net.minecraft.world.level.block.entity.BannerBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:100 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: patterns, name. เรียกต่อ: getOrDefault(), get().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.BannerBlockEntity#BannerBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BannerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getBlock(), getColor().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BannerBlockEntity instance = new BannerBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BannerBlockEntity#BannerBlockEntity(BlockPos,BlockState,DyeColor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BannerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: baseColor.
Parameters
BlockPos blockPosBlockState blockStateDyeColor dyeColor
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DyeColor dyeColor = ...;
BannerBlockEntity instance = new BannerBlockEntity(blockPos, blockState, dyeColor);
net.minecraft.world.level.block.entity.BannerBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:107 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ BannerBlockEntity
ทำงานยังไง
เรียกต่อ: set().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.BannerBlockEntity#getBaseColor()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:96 - Modifiers:
public - Return:
DyeColor
คืออะไร
อ่านค่า Base Color
ทำงานยังไง
คืนค่า: this.baseColor.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerBlockEntity#getCustomName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:44 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Custom Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerBlockEntity#getItem()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:90 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: byColor(), applyComponents(), collectComponents(). สร้างออบเจ็กต์: ItemStack. คืนค่า: itemStack.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerBlockEntity#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:39 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: this.name != null ? this.name : Component.translatable("block.minecraft.banner").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerBlockEntity#getPatterns()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:86 - Modifiers:
public - Return:
BannerPatternLayers
คืออะไร
อ่านค่า Patterns
ทำงานยังไง
คืนค่า: this.patterns.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:77 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.BannerBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:81 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveWithoutMetadata(). คืนค่า: this.saveWithoutMetadata(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BannerBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.BannerBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:62 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: name, patterns. เรียกต่อ: contains(), parseCustomNameSafe(), getString(), parse(), createSerializationContext(), get(), resultOrPartial(), error().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BannerBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:114 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
BannerBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.BannerBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerBlockEntity.java:50 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), put(), encodeStart(), createSerializationContext(), getOrThrow(), putString(), toJson().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
BannerPatternLayers
- Full name:
net.minecraft.world.level.block.entity.BannerPatternLayers - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BannerPatternLayers.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.entity.BannerPatternLayers#removeLast()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:28 - Modifiers:
public - Return:
BannerPatternLayers
คืออะไร
ลบ Last
ทำงานยังไง
เรียกต่อ: copyOf(), subList(), size(). สร้างออบเจ็กต์: BannerPatternLayers. คืนค่า: new BannerPatternLayers(List.copyOf(this.layers.subList(0, this.layers.size() - 1))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerPatternLayers$Builder
- Full name:
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BannerPatternLayers.java - Type:
class - Modifiers:
public static
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder#add(BannerPatternLayers.Layer)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:50 - Modifiers:
public - Return:
BannerPatternLayers.Builder
คืออะไร
เพิ่ม add
ทำงานยังไง
คืนค่า: this.
Parameters
BannerPatternLayers.Layer layer
ตัวอย่างใช้งาน
BannerPatternLayers.Builder instance = ...;
BannerPatternLayers.Layer layer = ...;
BannerPatternLayers.Builder result = instance.add(layer);
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder#add(Holder<BannerPattern>,DyeColor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:46 - Modifiers:
public - Return:
BannerPatternLayers.Builder
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: Layer(). สร้างออบเจ็กต์: BannerPatternLayers.Layer. คืนค่า: this.add(new BannerPatternLayers.Layer(holder, dyeColor)).
Parameters
Holder<BannerPattern> holderDyeColor dyeColor
ตัวอย่างใช้งาน
BannerPatternLayers.Builder instance = ...;
Holder<BannerPattern> holder = ...;
DyeColor dyeColor = ...;
BannerPatternLayers.Builder result = instance.add(holder, dyeColor);
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder#addAll(BannerPatternLayers)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:55 - Modifiers:
public - Return:
BannerPatternLayers.Builder
คืออะไร
เพิ่ม All
ทำงานยังไง
คืนค่า: this.
Parameters
BannerPatternLayers bannerPatternLayers
ตัวอย่างใช้งาน
BannerPatternLayers.Builder instance = ...;
BannerPatternLayers bannerPatternLayers = ...;
BannerPatternLayers.Builder result = instance.addAll(bannerPatternLayers);
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder#addIfRegistered(HolderGetter<BannerPattern>,ResourceKey<BannerPattern>,DyeColor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:35 - Modifiers:
public - Return:
BannerPatternLayers.Builder
คืออะไร
เพิ่ม If Registered
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), isEmpty(), warn(), location(), add(). มีจุด return อย่างน้อย 2 จุด.
Parameters
HolderGetter<BannerPattern> holderGetterResourceKey<BannerPattern> resourceKeyDyeColor dyeColor
ตัวอย่างใช้งาน
BannerPatternLayers.Builder instance = ...;
HolderGetter<BannerPattern> holderGetter = ...;
ResourceKey<BannerPattern> resourceKey = ...;
DyeColor dyeColor = ...;
BannerPatternLayers.Builder result = instance.addIfRegistered(holderGetter, resourceKey, dyeColor);
net.minecraft.world.level.block.entity.BannerPatternLayers$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:60 - Modifiers:
public - Return:
BannerPatternLayers
คืออะไร
สร้าง build
ทำงานยังไง
สร้างออบเจ็กต์: BannerPatternLayers. คืนค่า: new BannerPatternLayers(this.layers.build()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerPatternLayers$Layer
- Full name:
net.minecraft.world.level.block.entity.BannerPatternLayers$Layer - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BannerPatternLayers.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.entity.BannerPatternLayers$Layer#description()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatternLayers.java:77 - Modifiers:
public - Return:
MutableComponent
คืออะไร
ดำเนินการ description ตาม implementation ของ BannerPatternLayers$Layer
ทำงานยังไง
เรียกต่อ: value(), translationKey(), translatable(), getName(). คืนค่า: Component.translatable(string + "." + this.color.getName()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerPatterns
- Full name:
net.minecraft.world.level.block.entity.BannerPatterns - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BannerPatterns.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.entity.BannerPatterns#bootstrap(BootstrapContext<BannerPattern>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatterns.java:57 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ BannerPatterns
ทำงานยังไง
เรียกต่อ: register().
Parameters
BootstrapContext<BannerPattern> bootstrapContext
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BannerPatterns#register(BootstrapContext<BannerPattern>,ResourceKey<BannerPattern>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BannerPatterns.java:103 - Modifiers:
public static - Return:
void
คืออะไร
ลงทะเบียน register
ทำงานยังไง
เรียกต่อ: location(), toShortLanguageKey(). สร้างออบเจ็กต์: BannerPattern.
Parameters
BootstrapContext<BannerPattern> bootstrapContextResourceKey<BannerPattern> resourceKey
ตัวอย่างใช้งาน
BootstrapContext<BannerPattern> bootstrapContext = ...;
ResourceKey<BannerPattern> resourceKey = ...;
BannerPatterns.register(bootstrapContext, resourceKey);
BarrelBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BarrelBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BarrelBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.BarrelBlockEntity#BarrelBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:53 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BarrelBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BarrelBlockEntity instance = new BarrelBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BarrelBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:94 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
เรียกต่อ: threeRows(). คืนค่า: ChestMenu.threeRows(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.BarrelBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:74 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 27.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BarrelBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:89 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.barrel").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BarrelBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:79 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BarrelBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:65 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: items. เรียกต่อ: withSize(), getContainerSize(), tryLoadLootTable(), loadAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BarrelBlockEntity#recheckOpen()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:113 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recheckOpen ตาม implementation ของ BarrelBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: recheckOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BarrelBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:57 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), saveAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BarrelBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:84 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.BarrelBlockEntity#startOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:99 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), incrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BarrelBlockEntity#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BarrelBlockEntity.java:106 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), decrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
BaseContainerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BaseContainerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java - Type:
class - Modifiers:
public abstract - Extends:
BlockEntity - Implements:
Container,MenuProvider,Nameable
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:144 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: name, lockKey. เรียกต่อ: get(), getOrDefault(), copyInto(), getItems().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#BaseContainerBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:30 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BaseContainerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BaseContainerBlockEntity instance = new BaseContainerBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#canOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:70 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Open
ทำงานยังไง
เรียกต่อ: canUnlock(), getDisplayName(). คืนค่า: canUnlock(player, this.lockKey, this.getDisplayName()).
Parameters
Player player
ตัวอย่างใช้งาน
BaseContainerBlockEntity instance = ...;
Player player = ...;
boolean result = instance.canOpen(player);
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#canUnlock(Player,LockCode,Component)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:74 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Unlock
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), unlocksWith(), getMainHandItem(), displayClientMessage(), translatable(), playNotifySound(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player playerLockCode lockCodeComponent component
ตัวอย่างใช้งาน
Player player = ...;
LockCode lockCode = ...;
Component component = ...;
boolean result = BaseContainerBlockEntity.canUnlock(player, lockCode, component);
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#clearContent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:131 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: getItems(), clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:152 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ BaseContainerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: set(), equals(), fromItems(), getItems().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:142 - Modifiers:
protected abstract - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:136 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
เรียกต่อ: canOpen(). คืนค่า: this.canOpen(player) ? this.createMenu(i, inventory) : null.
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
BaseContainerBlockEntity instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getCustomName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:62 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Custom Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:68 - Modifiers:
protected abstract - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:57 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: getName(). คืนค่า: this.getName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:99 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: getItems(), get(). คืนค่า: this.getItems().get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:84 - Modifiers:
protected abstract - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:52 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: getDefaultName(). คืนค่า: this.name != null ? this.name : this.getDefaultName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:88 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItems(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:34 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lockKey, name. เรียกต่อ: fromTag(), contains(), parseCustomNameSafe(), getString().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:163 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
BaseContainerBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:104 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItems(), isEmpty(), setChanged(). คืนค่า: itemStack.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:114 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: takeItem(), getItems(). คืนค่า: ContainerHelper.takeItem(this.getItems(), i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:43 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addToTag(), putString(), toJson().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:119 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: getItems(), set(), limitSize(), getMaxStackSize(), setChanged().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:86 - Modifiers:
protected abstract - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.BaseContainerBlockEntity#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BaseContainerBlockEntity.java:126 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ BaseContainerBlockEntity
ทำงานยังไง
เรียกต่อ: stillValidBlockEntity(). คืนค่า: Container.stillValidBlockEntity(this, player).
Parameters
Player player
ตัวอย่างใช้งาน
BaseContainerBlockEntity instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
BeaconBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BeaconBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BeaconBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
MenuProvider,Nameable
net.minecraft.world.level.block.entity.BeaconBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:341 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: name, lockKey. เรียกต่อ: get(), getOrDefault().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.BeaconBlockEntity#BeaconBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:115 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeaconBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BeaconBlockEntity instance = new BeaconBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BeaconBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:348 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ BeaconBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: set(), equals().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.BeaconBlockEntity#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:323 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
เรียกต่อ: canUnlock(), getDisplayName(), create(), getBlockPos(). สร้างออบเจ็กต์: BeaconMenu.
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
BeaconBlockEntity instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.level.block.entity.BeaconBlockEntity#getBeamSections()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:259 - Modifiers:
public - Return:
List<BeaconBlockEntity.BeaconBeamSection>
คืออะไร
อ่านค่า Beam Sections
ทำงานยังไง
แก้ state: levels. เรียกต่อ: of(). คืนค่า: this.levels == 0 ? ImmutableList.of() : this.beamSections.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeaconBlockEntity instance = ...;
List<BeaconBlockEntity.BeaconBeamSection> result = instance.getBeamSections();
net.minecraft.world.level.block.entity.BeaconBlockEntity#getCustomName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:317 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Custom Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:331 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: getName(). คืนค่า: this.getName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:336 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name != null ? this.name : DEFAULT_NAME.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:263 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeaconBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.BeaconBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:267 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BeaconBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.BeaconBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:288 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: primaryPower, secondaryPower, name, lockKey. เรียกต่อ: loadEffect(), contains(), parseCustomNameSafe(), getString(), fromTag().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BeaconBlockEntity#playSound(Level,BlockPos,SoundEvent)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:255 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ playSound ตาม implementation ของ BeaconBlockEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Level levelBlockPos blockPosSoundEvent soundEvent
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
SoundEvent soundEvent = ...;
BeaconBlockEntity.playSound(level, blockPos, soundEvent);
net.minecraft.world.level.block.entity.BeaconBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:357 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
BeaconBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.BeaconBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:300 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: storeEffect(), putInt(), putString(), toJson(), addToTag().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BeaconBlockEntity#setCustomName(Component)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:313 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Name
ทำงานยังไง
แก้ state: name.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#setLevel(Level)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:363 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Level
ทำงานยังไง
แก้ state: lastCheckY. เรียกต่อ: getMinY().
Parameters
Level level
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#setRemoved()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:225 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Removed
ทำงานยังไง
เรียกต่อ: playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity#tick(Level,BlockPos,BlockState,BeaconBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:119 - Modifiers:
public static - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getX(), getY(), getZ(), newArrayList(), isEmpty(), get(), size(), getHeight(). สร้างออบเจ็กต์: BlockPos, BeaconBlockEntity.BeaconBeamSection, AABB.
Parameters
Level levelBlockPos blockPosBlockState blockStateBeaconBlockEntity beaconBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BeaconBlockEntity beaconBlockEntity = ...;
BeaconBlockEntity.tick(level, blockPos, blockState, beaconBlockEntity);
BeaconBlockEntity$BeaconBeamSection
- Full name:
net.minecraft.world.level.block.entity.BeaconBlockEntity$BeaconBeamSection - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BeaconBlockEntity.java - Type:
class - Modifiers:
public static
net.minecraft.world.level.block.entity.BeaconBlockEntity$BeaconBeamSection#BeaconBeamSection(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:373 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeaconBlockEntity.BeaconBeamSection ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: color, height.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity$BeaconBeamSection#getColor()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:382 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Color
ทำงานยังไง
คืนค่า: this.color.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity$BeaconBeamSection#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:386 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeaconBlockEntity$BeaconBeamSection#increaseHeight()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeaconBlockEntity.java:378 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ increaseHeight ตาม implementation ของ BeaconBlockEntity$BeaconBeamSection
ทำงานยังไง
แก้ state: height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BedBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BedBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BedBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.BedBlockEntity#BedBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BedBlockEntity.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BedBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getBlock(), getColor().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BedBlockEntity instance = new BedBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BedBlockEntity#BedBlockEntity(BlockPos,BlockState,DyeColor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BedBlockEntity.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BedBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: color.
Parameters
BlockPos blockPosBlockState blockStateDyeColor dyeColor
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DyeColor dyeColor = ...;
BedBlockEntity instance = new BedBlockEntity(blockPos, blockState, dyeColor);
net.minecraft.world.level.block.entity.BedBlockEntity#getColor()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BedBlockEntity.java:25 - Modifiers:
public - Return:
DyeColor
คืออะไร
อ่านค่า Color
ทำงานยังไง
คืนค่า: this.color.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BedBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BedBlockEntity.java:21 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BedBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
BeehiveBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BeehiveBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BeehiveBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.BeehiveBlockEntity#addOccupant(Bee)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:162 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Occupant
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: savedFlowerPos. เรียกต่อ: size(), stopRiding(), ejectPassengers(), dropLeash(), storeBee(), of(), hasSavedFlowerPos(), nextBoolean().
Parameters
Bee bee
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:310 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
เรียกต่อ: clear(), getOrDefault(), of(), forEach().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.BeehiveBlockEntity#BeehiveBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:87 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeehiveBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BeehiveBlockEntity instance = new BeehiveBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BeehiveBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:318 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ BeehiveBlockEntity
ทำงานยังไง
เรียกต่อ: set(), getBees().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.BeehiveBlockEntity#emptyAllLivingFromHive(Player,BlockState,BeehiveBlockEntity.BeeReleaseStatus)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:122 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ emptyAllLivingFromHive ตาม implementation ของ BeehiveBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: releaseAllOccupants(), position(), distanceToSqr(), isSedated(), setTarget(), setStayOutOfHiveCountdown().
Parameters
Player playerBlockState blockStateBeehiveBlockEntity.BeeReleaseStatus beeReleaseStatus
ตัวอย่างใช้งาน
BeehiveBlockEntity instance = ...;
Player player = ...;
BlockState blockState = ...;
BeehiveBlockEntity.BeeReleaseStatus beeReleaseStatus = ...;
instance.emptyAllLivingFromHive(player, blockState, beeReleaseStatus);
net.minecraft.world.level.block.entity.BeehiveBlockEntity#getHoneyLevel(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:153 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Honey Level
ทำงานยังไง
เรียกต่อ: getValue(). คืนค่า: blockState.getValue(BeehiveBlock.HONEY_LEVEL).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#getOccupantCount()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:148 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Occupant Count
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.stored.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:114 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.stored.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#isFireNearby()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:100 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fire Nearby
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: level. เรียกต่อ: betweenClosed(), offset(), getBlockState(), getBlock(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#isFull()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:118 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.stored.size() == 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#isSedated()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:157 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Sedated
ทำงานยังไง
เรียกต่อ: isSmokeyPos(), getBlockPos(). คืนค่า: CampfireBlock.isSmokeyPos(this.level, this.getBlockPos()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:287 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: savedFlowerPos. เรียกต่อ: clear(), contains(), parse(), get(), resultOrPartial(), error(), ifPresent(), forEach().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BeehiveBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:324 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
BeehiveBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.BeehiveBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:301 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: put(), encodeStart(), getBees(), getOrThrow(), hasSavedFlowerPos(), writeBlockPos().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BeehiveBlockEntity#serverTick(Level,BlockPos,BlockState,BeehiveBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:275 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ BeehiveBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: tickOccupants(), isEmpty(), getRandom(), nextDouble(), getX(), getY(), getZ(), playSound().
Parameters
Level levelBlockPos blockPosBlockState blockStateBeehiveBlockEntity beehiveBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BeehiveBlockEntity beehiveBlockEntity = ...;
BeehiveBlockEntity.serverTick(level, blockPos, blockState, beehiveBlockEntity);
net.minecraft.world.level.block.entity.BeehiveBlockEntity#setChanged()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:91 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isFireNearby(), emptyAllLivingFromHive(), getBlockState(), getBlockPos().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity#storeBee(BeehiveBlockEntity.Occupant)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:183 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ storeBee ตาม implementation ของ BeehiveBlockEntity
ทำงานยังไง
เรียกต่อ: add(), BeeData(). สร้างออบเจ็กต์: BeehiveBlockEntity.BeeData.
Parameters
BeehiveBlockEntity.Occupant occupant
ตัวอย่างใช้งาน
BeehiveBlockEntity instance = ...;
BeehiveBlockEntity.Occupant occupant = ...;
instance.storeBee(occupant);
BeehiveBlockEntity$Occupant
- Full name:
net.minecraft.world.level.block.entity.BeehiveBlockEntity$Occupant - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BeehiveBlockEntity.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.entity.BeehiveBlockEntity$Occupant#create(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:390 - Modifiers:
public static - Return:
BeehiveBlockEntity.Occupant
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: putString(), getKey(), toString(), Occupant(), of(). สร้างออบเจ็กต์: CompoundTag, BeehiveBlockEntity.Occupant. คืนค่า: new BeehiveBlockEntity.Occupant(CustomData.of(compoundTag), i, 600).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BeehiveBlockEntity$Occupant#createEntity(Level,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:396 - Modifiers:
public - Return:
Entity
คืออะไร
สร้าง Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: copyTag(), forEach(), loadEntityRecursive(), getType(), is(), setNoGravity(), setHivePos(), setBeeReleaseData(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Level levelBlockPos blockPos
ตัวอย่างใช้งาน
BeehiveBlockEntity.Occupant instance = ...;
Level level = ...;
BlockPos blockPos = ...;
Entity result = instance.createEntity(level, blockPos);
net.minecraft.world.level.block.entity.BeehiveBlockEntity$Occupant#of(Entity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BeehiveBlockEntity.java:382 - Modifiers:
public static - Return:
BeehiveBlockEntity.Occupant
คืออะไร
ดำเนินการ of ตาม implementation ของ BeehiveBlockEntity$Occupant
ทำงานยังไง
เรียกต่อ: save(), forEach(), getBoolean(), Occupant(). สร้างออบเจ็กต์: CompoundTag, BeehiveBlockEntity.Occupant. คืนค่า: new BeehiveBlockEntity.Occupant(CustomData.of(compoundTag), 0, bl ? 2400 : 600).
Parameters
Entity entity
ตัวอย่างใช้งาน
BellBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BellBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BellBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.BellBlockEntity#BellBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BellBlockEntity.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BellBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BellBlockEntity instance = new BellBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BellBlockEntity#clientTick(Level,BlockPos,BlockState,BellBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BellBlockEntity.java:84 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ clientTick ตาม implementation ของ BellBlockEntity
ทำงานยังไง
เรียกต่อ: tick().
Parameters
Level levelBlockPos blockPosBlockState blockStateBellBlockEntity bellBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BellBlockEntity bellBlockEntity = ...;
BellBlockEntity.clientTick(level, blockPos, blockState, bellBlockEntity);
net.minecraft.world.level.block.entity.BellBlockEntity#onHit(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BellBlockEntity.java:92 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Hit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: clickDirection, ticks, shaking. เรียกต่อ: getBlockPos(), blockEvent(), getBlockState(), getBlock(), get3DDataValue().
Parameters
Direction direction
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BellBlockEntity#serverTick(Level,BlockPos,BlockState,BellBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BellBlockEntity.java:88 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ BellBlockEntity
ทำงานยังไง
เรียกต่อ: tick().
Parameters
Level levelBlockPos blockPosBlockState blockStateBellBlockEntity bellBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BellBlockEntity bellBlockEntity = ...;
BellBlockEntity.serverTick(level, blockPos, blockState, bellBlockEntity);
net.minecraft.world.level.block.entity.BellBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BellBlockEntity.java:43 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ BellBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: resonationTicks, clickDirection, ticks, shaking. เรียกต่อ: updateEntities(), from3DDataValue(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
BlastFurnaceBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BlastFurnaceBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BlastFurnaceBlockEntity.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceBlockEntity
net.minecraft.world.level.block.entity.BlastFurnaceBlockEntity#BlastFurnaceBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlastFurnaceBlockEntity.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlastFurnaceBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BlastFurnaceBlockEntity instance = new BlastFurnaceBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BlastFurnaceBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlastFurnaceBlockEntity.java:27 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: BlastFurnaceMenu. คืนค่า: new BlastFurnaceMenu(i, inventory, this, this.dataAccess).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.BlastFurnaceBlockEntity#getBurnDuration(FuelValues,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlastFurnaceBlockEntity.java:22 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Burn Duration
ทำงานยังไง
คืนค่า: super.getBurnDuration(fuelValues, itemStack) / 2.
Parameters
FuelValues fuelValuesItemStack itemStack
ตัวอย่างใช้งาน
FuelValues fuelValues = ...;
ItemStack itemStack = ...;
@Override
protected int getBurnDuration(FuelValues fuelValues, ItemStack itemStack) {
return super.getBurnDuration(fuelValues, itemStack);
}
net.minecraft.world.level.block.entity.BlastFurnaceBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlastFurnaceBlockEntity.java:17 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.blast_furnace").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntity
- Full name:
net.minecraft.world.level.block.entity.BlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BlockEntity.java - Type:
class - Modifiers:
public abstract - Implements:
RenderDataBlockEntity,AttachmentTarget
net.minecraft.world.level.block.entity.BlockEntity#addEntityType(CompoundTag,BlockEntityType<?>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:139 - Modifiers:
public static - Return:
void
คืออะไร
เพิ่ม Entity Type
ทำงานยังไง
เรียกต่อ: putString(), getKey(), toString().
Parameters
CompoundTag compoundTagBlockEntityType<?> blockEntityType
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
BlockEntityType<?> blockEntityType = ...;
BlockEntity.addEntityType(compoundTag, blockEntityType);
net.minecraft.world.level.block.entity.BlockEntity#applyComponents(DataComponentMap,DataComponentPatch)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:255 - Modifiers:
public final - Return:
void
คืออะไร
นำไปใช้ Components
ทำงานยังไง
แก้ state: components. เรียกต่อ: add(), fromPatch(), applyImplicitComponents(), DataComponentInput(), get(), getOrDefault(), forget(), split(). สร้างออบเจ็กต์: HashSet<>, BlockEntity.DataComponentInput. มีจุด return อย่างน้อย 2 จุด.
Parameters
DataComponentMap dataComponentMapDataComponentPatch dataComponentPatch
ตัวอย่างใช้งาน
BlockEntity instance = ...;
DataComponentMap dataComponentMap = ...;
DataComponentPatch dataComponentPatch = ...;
instance.applyComponents(dataComponentMap, dataComponentPatch);
net.minecraft.world.level.block.entity.BlockEntity#applyComponentsFromItemStack(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:251 - Modifiers:
public final - Return:
void
คืออะไร
นำไปใช้ Components From Item Stack
ทำงานยังไง
เรียกต่อ: applyComponents(), getPrototype(), getComponentsPatch().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
BlockEntity instance = ...;
ItemStack itemStack = ...;
instance.applyComponentsFromItemStack(itemStack);
net.minecraft.world.level.block.entity.BlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:248 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.BlockEntity#BlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:44 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: type, worldPosition, blockState. เรียกต่อ: immutable(), validateBlockState().
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BlockEntity instance = new BlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.BlockEntity#clearRemoved()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:218 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Removed
ทำงานยังไง
แก้ state: remove.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#collectComponents()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:285 - Modifiers:
public final - Return:
DataComponentMap
คืออะไร
ดำเนินการ collectComponents ตาม implementation ของ BlockEntity
ทำงานยังไง
เรียกต่อ: builder(), addAll(), collectImplicitComponents(), build(). คืนค่า: builder.build().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:278 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ BlockEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.BlockEntity#components()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:292 - Modifiers:
public - Return:
DataComponentMap
คืออะไร
ดำเนินการ components ตาม implementation ของ BlockEntity
ทำงานยังไง
คืนค่า: this.components.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#fillCrashReportCategory(CrashReportCategory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:226 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ BlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setDetail(), populateBlockDetails(), getBlockState().
Parameters
CrashReportCategory crashReportCategory
ตัวอย่างใช้งาน
BlockEntity instance = ...;
CrashReportCategory crashReportCategory = ...;
instance.fillCrashReportCategory(crashReportCategory);
net.minecraft.world.level.block.entity.BlockEntity#getBlockPos()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:193 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos
ทำงานยังไง
คืนค่า: this.worldPosition.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getBlockState()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:197 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
คืนค่า: this.blockState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getLevel()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:65 - Modifiers:
public - Return:
Level
คืออะไร
อ่านค่า Level
ทำงานยังไง
คืนค่า: this.level.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getPosFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:61 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Pos From Tag
ทำงานยังไง
เรียกต่อ: getInt(). สร้างออบเจ็กต์: BlockPos. คืนค่า: new BlockPos(compoundTag.getInt("x"), compoundTag.getInt("y"), compoundTag.getInt("z")).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getType()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:238 - Modifiers:
public - Return:
BlockEntityType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:201 - Modifiers:
public - Return:
Packet<ClientGamePacketListener>
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:206 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
สร้างออบเจ็กต์: CompoundTag. คืนค่า: new CompoundTag().
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.BlockEntity#hasLevel()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:74 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Level
ทำงานยังไง
คืนค่า: this.level != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#isRemoved()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:210 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Removed
ทำงานยังไง
คืนค่า: this.remove.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#isValidBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Block State
ทำงานยังไง
เรียกต่อ: isValid(). คืนค่า: this.type.isValid(blockState).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockEntity instance = ...;
BlockState blockState = ...;
boolean result = instance.isValidBlockState(blockState);
net.minecraft.world.level.block.entity.BlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:78 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BlockEntity#loadCustomOnly(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:89 - Modifiers:
public final - Return:
void
คืออะไร
โหลด Custom Only
ทำงานยังไง
เรียกต่อ: loadAdditional().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
instance.loadCustomOnly(compoundTag, provider);
net.minecraft.world.level.block.entity.BlockEntity#loadStatic(BlockPos,BlockState,CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:150 - Modifiers:
public static - Return:
BlockEntity
คืออะไร
โหลด Static
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getString(), tryParse(), error(), getOptional(), map(), create(), loadWithComponents(), orElseGet(). มีจุด return อย่างน้อย 6 จุด.
Parameters
BlockPos blockPosBlockState blockStateCompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
BlockEntity result = BlockEntity.loadStatic(blockPos, blockState, compoundTag, provider);
net.minecraft.world.level.block.entity.BlockEntity#loadWithComponents(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:81 - Modifiers:
public final - Return:
void
คืออะไร
โหลด With Components
ทำงานยังไง
แก้ state: components. เรียกต่อ: loadAdditional(), parse(), createSerializationContext(), resultOrPartial(), warn(), ifPresent().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
instance.loadWithComponents(compoundTag, provider);
net.minecraft.world.level.block.entity.BlockEntity#parseCustomNameSafe(String,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:300 - Modifiers:
public static - Return:
Component
คืออะไร
แปลง/วิเคราะห์ข้อมูล Custom Name Safe
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: fromJson(), warn(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringHolderLookup.Provider provider
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
Component result = BlockEntity.parseCustomNameSafe("value", provider);
net.minecraft.world.level.block.entity.BlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:281 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
BlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.BlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:93 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BlockEntity#saveCustomAndMetadata(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:124 - Modifiers:
public final - Return:
CompoundTag
คืออะไร
บันทึก Custom And Metadata
ทำงานยังไง
เรียกต่อ: saveCustomOnly(), saveMetadata(). คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.saveCustomAndMetadata(provider);
net.minecraft.world.level.block.entity.BlockEntity#saveCustomOnly(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:118 - Modifiers:
public final - Return:
CompoundTag
คืออะไร
บันทึก Custom Only
ทำงานยังไง
เรียกต่อ: saveAdditional(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.saveCustomOnly(provider);
net.minecraft.world.level.block.entity.BlockEntity#saveWithFullMetadata(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:96 - Modifiers:
public final - Return:
CompoundTag
คืออะไร
บันทึก With Full Metadata
ทำงานยังไง
เรียกต่อ: saveWithoutMetadata(), saveMetadata(). คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.saveWithFullMetadata(provider);
net.minecraft.world.level.block.entity.BlockEntity#saveWithId(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:102 - Modifiers:
public final - Return:
CompoundTag
คืออะไร
บันทึก With Id
ทำงานยังไง
เรียกต่อ: saveWithoutMetadata(), saveId(). คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.saveWithId(provider);
net.minecraft.world.level.block.entity.BlockEntity#saveWithoutMetadata(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:108 - Modifiers:
public final - Return:
CompoundTag
คืออะไร
บันทึก Without Metadata
ทำงานยังไง
เรียกต่อ: saveAdditional(), encodeStart(), createSerializationContext(), resultOrPartial(), warn(), ifPresent(), merge(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.saveWithoutMetadata(provider);
net.minecraft.world.level.block.entity.BlockEntity#setBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:242 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
แก้ state: blockState. เรียกต่อ: validateBlockState().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#setChanged()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:180 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#setChanged(Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:186 - Modifiers:
protected static - Return:
void
คืออะไร
กำหนดค่า Changed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: blockEntityChanged(), isAir(), updateNeighbourForOutputSignal(), getBlock().
Parameters
Level levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void setChanged(Level level, BlockPos blockPos, BlockState blockState) {
super.setChanged(level, blockPos, blockState);
}
net.minecraft.world.level.block.entity.BlockEntity#setComponents(DataComponentMap)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:296 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Components
ทำงานยังไง
แก้ state: components.
Parameters
DataComponentMap dataComponentMap
ตัวอย่างใช้งาน
BlockEntity instance = ...;
DataComponentMap dataComponentMap = ...;
instance.setComponents(dataComponentMap);
net.minecraft.world.level.block.entity.BlockEntity#setLevel(Level)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:70 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Level
ทำงานยังไง
แก้ state: level.
Parameters
Level level
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#setRemoved()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:214 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Removed
ทำงานยังไง
แก้ state: remove.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:222 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ BlockEntity
ทำงานยังไง
คืนค่า: false.
Parameters
int iint j
ตัวอย่างใช้งาน
BlockEntity$DataComponentInput
- Full name:
net.minecraft.world.level.block.entity.BlockEntity$DataComponentInput - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BlockEntity.java - Type:
interface - Modifiers:
protected
net.minecraft.world.level.block.entity.BlockEntity$DataComponentInput#get(DataComponentType<T>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:318 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataComponentType<T> dataComponentType
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput instance = ...;
DataComponentType<T> dataComponentType = ...;
T result = instance.get(dataComponentType);
net.minecraft.world.level.block.entity.BlockEntity$DataComponentInput#getOrDefault(DataComponentType<? extends T>,T)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntity.java:321 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า Or Default
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataComponentType<? extends T> dataComponentTypeT object
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput instance = ...;
DataComponentType<? extends T> dataComponentType = ...;
T object = ...;
T result = instance.getOrDefault(dataComponentType, object);
BlockEntityTicker
- Full name:
net.minecraft.world.level.block.entity.BlockEntityTicker - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BlockEntityTicker.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.block.entity.BlockEntityTicker#tick(Level,BlockPos,BlockState,T)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityTicker.java:9 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Level levelBlockPos blockPosBlockState blockStateT blockEntity
ตัวอย่างใช้งาน
BlockEntityTicker instance = ...;
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
T blockEntity = ...;
instance.tick(level, blockPos, blockState, blockEntity);
BlockEntityType
- Full name:
net.minecraft.world.level.block.entity.BlockEntityType - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BlockEntityType.java - Type:
class - Modifiers:
public - Implements:
FabricBlockEntityType
net.minecraft.world.level.block.entity.BlockEntityType#builtInRegistryHolder()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:264 - Modifiers:
public - Return:
Holder.Reference<BlockEntityType<?>>
คืออะไร
ดำเนินการ builtInRegistryHolder ตาม implementation ของ BlockEntityType
ทำงานยังไง
คืนค่า: this.builtInRegistryHolder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntityType instance = ...;
Holder.Reference<BlockEntityType<?>> result = instance.builtInRegistryHolder();
net.minecraft.world.level.block.entity.BlockEntityType#create(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:255 - Modifiers:
public - Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: (T)this.factory.create(blockPos, blockState).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
T result = instance.create(blockPos, blockState);
net.minecraft.world.level.block.entity.BlockEntityType#getBlockEntity(BlockGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:269 - Modifiers:
public - Return:
T
คืออะไร
อ่านค่า Block Entity
ทำงานยังไง
เรียกต่อ: getType(). คืนค่า: (T)(blockEntity != null && blockEntity.getType() == this ? blockEntity : null).
Parameters
BlockGetter blockGetterBlockPos blockPos
ตัวอย่างใช้งาน
BlockEntityType instance = ...;
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
T result = instance.getBlockEntity(blockGetter, blockPos);
net.minecraft.world.level.block.entity.BlockEntityType#getKey(BlockEntityType<?>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:234 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Key
ทำงานยังไง
คืนค่า: BuiltInRegistries.BLOCK_ENTITY_TYPE.getKey(blockEntityType).
Parameters
BlockEntityType<?> blockEntityType
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
ResourceLocation result = BlockEntityType.getKey(blockEntityType);
net.minecraft.world.level.block.entity.BlockEntityType#isValid(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:260 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid
ทำงานยังไง
เรียกต่อ: contains(), getBlock(). คืนค่า: this.validBlocks.contains(blockState.getBlock()).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockEntityType instance = ...;
BlockState blockState = ...;
boolean result = instance.isValid(blockState);
net.minecraft.world.level.block.entity.BlockEntityType#onlyOpCanSetNbt()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BlockEntityType.java:275 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ onlyOpCanSetNbt ตาม implementation ของ BlockEntityType
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: OP_ONLY_CUSTOM_DATA.contains(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BrewingStandBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BrewingStandBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BaseContainerBlockEntity - Implements:
WorldlyContainer
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#BrewingStandBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:69 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BrewingStandBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BrewingStandBlockEntity instance = new BrewingStandBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#canPlaceItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:212 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: potionBrewing(), isIngredient(), is(), getItem(), isEmpty(). คืนค่า: potionBrewing.isIngredient(itemStack).
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
BrewingStandBlockEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canPlaceItem(0, itemStack);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#canPlaceItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:234 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item Through Face
ทำงานยังไง
เรียกต่อ: canPlaceItem(). คืนค่า: this.canPlaceItem(i, itemStack).
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
BrewingStandBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canPlaceItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#canTakeItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:239 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item Through Face
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: i == 3 ? itemStack.is(Items.GLASS_BOTTLE) : true.
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
BrewingStandBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canTakeItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:244 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: BrewingStandMenu. คืนค่า: new BrewingStandMenu(i, inventory, this, this.dataAccess).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:78 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.items.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:73 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.brewing").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:83 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#getSlotsForFace(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:225 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า Slots For Face
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
Direction direction
ตัวอย่างใช้งาน
BrewingStandBlockEntity instance = ...;
Direction direction = ...;
int[] result = instance.getSlotsForFace(direction);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:191 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: items, brewTime, ingredient, fuel. เรียกต่อ: withSize(), getContainerSize(), loadAllItems(), getShort(), get(), getItem(), getByte().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:204 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: putShort(), saveAllItems(), putByte().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#serverTick(Level,BlockPos,BlockState,BrewingStandBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:93 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ BrewingStandBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), is(), shrink(), setChanged(), isBrewable(), potionBrewing(), doBrew(), getItem().
Parameters
Level levelBlockPos blockPosBlockState blockStateBrewingStandBlockEntity brewingStandBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BrewingStandBlockEntity brewingStandBlockEntity = ...;
BrewingStandBlockEntity.serverTick(level, blockPos, blockState, brewingStandBlockEntity);
net.minecraft.world.level.block.entity.BrewingStandBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java:88 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
BrushableBlockEntity
- Full name:
net.minecraft.world.level.block.entity.BrushableBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/BrushableBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.BrushableBlockEntity#brush(long,ServerLevel,Player,Direction,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ brush ตาม implementation ของ BrushableBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hitDirection, brushCountResetsAtTick, coolDownEndsAtTick. เรียกต่อ: unpackLootTable(), getCompletionState(), brushingCompleted(), scheduleTick(), getBlockPos(), getBlockState(), getBlock(), setValue(). มีจุด return อย่างน้อย 3 จุด.
Parameters
long lServerLevel serverLevelPlayer playerDirection directionItemStack itemStack
ตัวอย่างใช้งาน
BrushableBlockEntity instance = ...;
ServerLevel serverLevel = ...;
Player player = ...;
Direction direction = ...;
ItemStack itemStack = ...;
boolean result = instance.brush(0L, serverLevel, player, direction, itemStack);
net.minecraft.world.level.block.entity.BrushableBlockEntity#BrushableBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:53 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BrushableBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
BrushableBlockEntity instance = new BrushableBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.BrushableBlockEntity#checkReset(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:146 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Reset
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: brushCount, brushCountResetsAtTick, hitDirection, coolDownEndsAtTick. เรียกต่อ: getGameTime(), getCompletionState(), max(), setBlock(), getBlockPos(), getBlockState(), setValue(), scheduleTick().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
BrushableBlockEntity instance = ...;
ServerLevel serverLevel = ...;
instance.checkReset(serverLevel);
net.minecraft.world.level.block.entity.BrushableBlockEntity#getHitDirection()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:246 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Hit Direction
ทำงานยังไง
คืนค่า: this.hitDirection.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BrushableBlockEntity#getItem()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:251 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
คืนค่า: this.item.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.BrushableBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:205 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BrushableBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.BrushableBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:191 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), ordinal(), isEmpty(), put(), save(). คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
BrushableBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.BrushableBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:209 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: item, hitDirection. เรียกต่อ: tryLoadLootTable(), contains(), parse(), getCompound(), orElse(), values(), getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BrushableBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:223 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), isEmpty(), put(), save().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.BrushableBlockEntity#setLootTable(ResourceKey<LootTable>,long)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/BrushableBlockEntity.java:231 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table
ทำงานยังไง
แก้ state: lootTable, lootTableSeed.
Parameters
ResourceKey<LootTable> resourceKeylong l
ตัวอย่างใช้งาน
BrushableBlockEntity instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setLootTable(resourceKey, 0L);
CalibratedSculkSensorBlockEntity
- Full name:
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java - Type:
class - Modifiers:
public - Extends:
SculkSensorBlockEntity
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity#CalibratedSculkSensorBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CalibratedSculkSensorBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CalibratedSculkSensorBlockEntity instance = new CalibratedSculkSensorBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity#createVibrationUser()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java:19 - Modifiers:
public - Return:
VibrationSystem.User
คืออะไร
สร้าง Vibration User
ทำงานยังไง
เรียกต่อ: VibrationUser(), getBlockPos(). สร้างออบเจ็กต์: CalibratedSculkSensorBlockEntity.VibrationUser. คืนค่า: new CalibratedSculkSensorBlockEntity.VibrationUser(this.getBlockPos()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CalibratedSculkSensorBlockEntity instance = ...;
VibrationSystem.User result = instance.createVibrationUser();
CalibratedSculkSensorBlockEntity$VibrationUser
- Full name:
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity$VibrationUser - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java - Type:
class - Modifiers:
protected - Extends:
SculkSensorBlockEntity.VibrationUser
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity$VibrationUser#canReceiveVibration(ServerLevel,BlockPos,Holder<GameEvent>,GameEvent.Context)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java:34 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Receive Vibration
ทำงานยังไง
เรียกต่อ: getBackSignal(), getBlockState(), getGameEventFrequency(). คืนค่า: i != 0 && VibrationSystem.getGameEventFrequency(holder) != i ? false : super.canReceiveVibration(serverLevel, blockPos, holder, context).
Parameters
ServerLevel serverLevelBlockPos blockPosHolder<GameEvent> holderGameEvent.Context context
ตัวอย่างใช้งาน
CalibratedSculkSensorBlockEntity.VibrationUser instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
Holder<GameEvent> holder = ...;
GameEvent.Context context = ...;
boolean result = instance.canReceiveVibration(serverLevel, blockPos, holder, context);
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity$VibrationUser#getListenerRadius()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java:29 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Listener Radius
ทำงานยังไง
คืนค่า: 16.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CalibratedSculkSensorBlockEntity.VibrationUser instance = ...;
int result = instance.getListenerRadius();
net.minecraft.world.level.block.entity.CalibratedSculkSensorBlockEntity$VibrationUser#VibrationUser(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CalibratedSculkSensorBlockEntity.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CalibratedSculkSensorBlockEntity.VibrationUser ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
CalibratedSculkSensorBlockEntity.VibrationUser instance = new CalibratedSculkSensorBlockEntity.VibrationUser(blockPos);
CampfireBlockEntity
- Full name:
net.minecraft.world.level.block.entity.CampfireBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CampfireBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Clearable
net.minecraft.world.level.block.entity.CampfireBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:195 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
เรียกต่อ: getOrDefault(), copyInto(), getItems().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.CampfireBlockEntity#CampfireBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:40 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CampfireBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CampfireBlockEntity instance = new CampfireBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.CampfireBlockEntity#clearContent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:184 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CampfireBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:201 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
เรียกต่อ: set(), fromItems(), getItems().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.CampfireBlockEntity#cookTick(ServerLevel,BlockPos,BlockState,CampfireBlockEntity,RecipeManager.CachedCheck<SingleRecipeInput, CampfireCookingRecipe>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:44 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ cookTick ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), isEmpty(), getRecipeFor(), map(), value(), assemble(), registryAccess(). สร้างออบเจ็กต์: SingleRecipeInput.
Parameters
ServerLevel serverLevelBlockPos blockPosBlockState blockStateCampfireBlockEntity campfireBlockEntityRecipeManager.CachedCheck<SingleRecipeInput, CampfireCookingRecipe> cachedCheck
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
CampfireBlockEntity campfireBlockEntity = ...;
RecipeManager.CachedCheck<SingleRecipeInput, CampfireCookingRecipe> cachedCheck = ...;
CampfireBlockEntity.cookTick(serverLevel, blockPos, blockState, campfireBlockEntity, cachedCheck);
net.minecraft.world.level.block.entity.CampfireBlockEntity#cooldownTick(Level,BlockPos,BlockState,CampfireBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:78 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ cooldownTick ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), clamp(), setChanged().
Parameters
Level levelBlockPos blockPosBlockState blockStateCampfireBlockEntity campfireBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
CampfireBlockEntity campfireBlockEntity = ...;
CampfireBlockEntity.cooldownTick(level, blockPos, blockState, campfireBlockEntity);
net.minecraft.world.level.block.entity.CampfireBlockEntity#dowse()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:189 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dowse ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: markUpdated().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CampfireBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:118 - Modifiers:
public - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CampfireBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:146 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CampfireBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.CampfireBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:150 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveAllItems(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
CampfireBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.CampfireBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:122 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: clear(), loadAllItems(), contains(), getIntArray(), arraycopy(), min().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CampfireBlockEntity#particleTick(Level,BlockPos,BlockState,CampfireBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:93 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ particleTick ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextFloat(), nextInt(), makeParticles(), getValue(), get2DDataValue(), size(), get(), isEmpty().
Parameters
Level levelBlockPos blockPosBlockState blockStateCampfireBlockEntity campfireBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
CampfireBlockEntity campfireBlockEntity = ...;
CampfireBlockEntity.particleTick(level, blockPos, blockState, campfireBlockEntity);
net.minecraft.world.level.block.entity.CampfireBlockEntity#placeFood(ServerLevel,LivingEntity,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:157 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ placeFood ตาม implementation ของ CampfireBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), isEmpty(), recipeAccess(), getRecipeFor(), value(), cookingTime(), set(). สร้างออบเจ็กต์: SingleRecipeInput. มีจุด return อย่างน้อย 3 จุด.
Parameters
ServerLevel serverLevelLivingEntity livingEntityItemStack itemStack
ตัวอย่างใช้งาน
CampfireBlockEntity instance = ...;
ServerLevel serverLevel = ...;
LivingEntity livingEntity = ...;
ItemStack itemStack = ...;
boolean result = instance.placeFood(serverLevel, livingEntity, itemStack);
net.minecraft.world.level.block.entity.CampfireBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:207 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CampfireBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.CampfireBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CampfireBlockEntity.java:138 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: saveAllItems(), putIntArray().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
ChestBlockEntity
- Full name:
net.minecraft.world.level.block.entity.ChestBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ChestBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity - Implements:
LidBlockEntity
net.minecraft.world.level.block.entity.ChestBlockEntity#ChestBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:58 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ChestBlockEntity instance = new ChestBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.ChestBlockEntity#ChestBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:62 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
ChestBlockEntity instance = new ChestBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.ChestBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:170 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
เรียกต่อ: threeRows(). คืนค่า: ChestMenu.threeRows(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.ChestBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:66 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 27.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:71 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.chest").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:137 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#getOpenCount(BlockGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:152 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Open Count
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), hasBlockEntity(), getBlockEntity(), getOpenerCount(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockGetter blockGetterBlockPos blockPos
ตัวอย่างใช้งาน
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
int result = ChestBlockEntity.getOpenCount(blockGetter, blockPos);
net.minecraft.world.level.block.entity.ChestBlockEntity#getOpenNess(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:147 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Open Ness
ทำงานยังไง
เรียกต่อ: getOpenness(). คืนค่า: this.chestLidController.getOpenness(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#lidAnimateTick(Level,BlockPos,BlockState,ChestBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:93 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ lidAnimateTick ตาม implementation ของ ChestBlockEntity
ทำงานยังไง
เรียกต่อ: tickLid().
Parameters
Level levelBlockPos blockPosBlockState blockStateChestBlockEntity chestBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ChestBlockEntity chestBlockEntity = ...;
ChestBlockEntity.lidAnimateTick(level, blockPos, blockState, chestBlockEntity);
net.minecraft.world.level.block.entity.ChestBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:76 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: items. เรียกต่อ: withSize(), getContainerSize(), tryLoadLootTable(), loadAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ChestBlockEntity#recheckOpen()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:175 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recheckOpen ตาม implementation ของ ChestBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: recheckOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:85 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), saveAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ChestBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:142 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.ChestBlockEntity#signalOpenCount(Level,BlockPos,BlockState,int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:181 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ signalOpenCount ตาม implementation ของ ChestBlockEntity
ทำงานยังไง
เรียกต่อ: getBlock(), blockEvent().
Parameters
Level levelBlockPos blockPosBlockState blockStateint iint j
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void signalOpenCount(Level level, BlockPos blockPos, BlockState blockState, int i, int j) {
super.signalOpenCount(level, blockPos, blockState, i, j);
}
net.minecraft.world.level.block.entity.ChestBlockEntity#startOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:123 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), incrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:130 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), decrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestBlockEntity#swapContents(ChestBlockEntity,ChestBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:164 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ swapContents ตาม implementation ของ ChestBlockEntity
ทำงานยังไง
เรียกต่อ: getItems(), setItems().
Parameters
ChestBlockEntity chestBlockEntityChestBlockEntity chestBlockEntity2
ตัวอย่างใช้งาน
ChestBlockEntity chestBlockEntity = ...;
ChestBlockEntity chestBlockEntity2 = ...;
ChestBlockEntity.swapContents(chestBlockEntity, chestBlockEntity2);
net.minecraft.world.level.block.entity.ChestBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestBlockEntity.java:113 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ ChestBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldBeOpen(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
ChestLidController
- Full name:
net.minecraft.world.level.block.entity.ChestLidController - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ChestLidController.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.entity.ChestLidController#getOpenness(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestLidController.java:20 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Openness
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.oOpenness, this.openness).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestLidController#shouldBeOpen(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestLidController.java:24 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบว่าควร Be Open
ทำงานยังไง
แก้ state: shouldBeOpen.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChestLidController#tickLid()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChestLidController.java:10 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick Lid
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: oOpenness, openness. เรียกต่อ: max(), min().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity
- Full name:
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Container
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:145 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
เรียกต่อ: getOrDefault(), copyInto().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#canPlaceItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:136 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item
ทำงานยังไง
เรียกต่อ: is(), getItem(), isEmpty(), getCount(), getMaxStackSize(). คืนค่า: itemStack.is(ItemTags.BOOKSHELF_BOOKS) && this.getItem(i).isEmpty() && itemStack.getCount() == this.getMaxStackSize().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canPlaceItem(0, itemStack);
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#canTakeItem(Container,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:117 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item
ทำงานยังไง
เรียกต่อ: hasAnyMatching(), isEmpty(), isSameItemSameComponents(), getCount(), getMaxStackSize().
Parameters
Container containerint iItemStack itemStack
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity instance = ...;
Container container = ...;
ItemStack itemStack = ...;
boolean result = instance.canTakeItem(container, 0, itemStack);
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#ChiseledBookShelfBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChiseledBookShelfBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
ChiseledBookShelfBlockEntity instance = new ChiseledBookShelfBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#clearContent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:71 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:151 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ ChiseledBookShelfBlockEntity
ทำงานยังไง
เรียกต่อ: set(), fromItems().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#count()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:67 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ count ตาม implementation ของ ChiseledBookShelfBlockEntity
ทำงานยังไง
เรียกต่อ: stream(), filter(), not(). คืนค่า: (int)this.items.stream().filter(Predicate.not(ItemStack::isEmpty)).count().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:76 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 6.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#getItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:86 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.items.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#getLastInteractedSlot()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:141 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Last Interacted Slot
ทำงานยังไง
คืนค่า: this.lastInteractedSlot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#getMaxStackSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:126 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Stack Size
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:81 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
เรียกต่อ: stream(), allMatch(). คืนค่า: this.items.stream().allMatch(ItemStack::isEmpty).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:52 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
แก้ state: lastInteractedSlot. เรียกต่อ: clear(), loadAllItems(), getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:157 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:91 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: requireNonNullElse(), get(), set(), isEmpty(), updateState(). คืนค่า: itemStack.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:102 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: removeItem(). คืนค่า: this.removeItem(i, 1).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:60 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: saveAllItems(), putInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:107 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), set(), updateState(), isEmpty(), removeItem().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity instance = ...;
ItemStack itemStack = ...;
instance.setItem(0, itemStack);
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ChiseledBookShelfBlockEntity.java:131 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ ChiseledBookShelfBlockEntity
ทำงานยังไง
เรียกต่อ: stillValidBlockEntity(). คืนค่า: Container.stillValidBlockEntity(this, player).
Parameters
Player player
ตัวอย่างใช้งาน
ChiseledBookShelfBlockEntity instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
CommandBlockEntity
- Full name:
net.minecraft.world.level.block.entity.CommandBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CommandBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.CommandBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:164 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
เรียกต่อ: setCustomName(), get().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.CommandBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:170 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ CommandBlockEntity
ทำงานยังไง
เรียกต่อ: set(), getCustomName().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.CommandBlockEntity#CommandBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:68 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CommandBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CommandBlockEntity instance = new CommandBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.CommandBlockEntity#getCommandBlock()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:90 - Modifiers:
public - Return:
BaseCommandBlock
คืออะไร
อ่านค่า Command Block
ทำงานยังไง
คืนค่า: this.commandBlock.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#getMode()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:148 - Modifiers:
public - Return:
CommandBlockEntity.Mode
คืออะไร
อ่านค่า Mode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), is(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#isAutomatic()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:102 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Automatic
ทำงานยังไง
คืนค่า: this.auto.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#isConditional()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:159 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Conditional
ทำงานยังไง
เรียกต่อ: getBlockState(), getBlockPos(), getBlock(), getValue(). คืนค่า: blockState.getBlock() instanceof CommandBlock ? blockState.getValue(CommandBlock.CONDITIONAL) : false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#isPowered()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:98 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Powered
ทำงานยังไง
คืนค่า: this.powered.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:81 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
แก้ state: powered, conditionMet. เรียกต่อ: load(), getBoolean(), setAutomatic().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CommandBlockEntity#markConditionMet()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:133 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ markConditionMet ตาม implementation ของ CommandBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: conditionMet. เรียกต่อ: isConditional(), relative(), getBlockState(), getValue(), getOpposite(), getBlock(), getBlockEntity(), getCommandBlock(). คืนค่า: this.conditionMet.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#onModeSwitch()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:114 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Mode Switch
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getMode(), scheduleTick().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:176 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CommandBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.CommandBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:72 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: save(), putBoolean(), isPowered(), wasConditionMet(), isAutomatic().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CommandBlockEntity#setAutomatic(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:106 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Automatic
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: auto. เรียกต่อ: getMode(), scheduleTick().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#setPowered(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:94 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Powered
ทำงานยังไง
แก้ state: powered.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CommandBlockEntity#wasConditionMet()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CommandBlockEntity.java:129 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ wasConditionMet ตาม implementation ของ CommandBlockEntity
ทำงานยังไง
คืนค่า: this.conditionMet.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ComparatorBlockEntity
- Full name:
net.minecraft.world.level.block.entity.ComparatorBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ComparatorBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.ComparatorBlockEntity#ComparatorBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ComparatorBlockEntity.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ComparatorBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
ComparatorBlockEntity instance = new ComparatorBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.ComparatorBlockEntity#getOutputSignal()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ComparatorBlockEntity.java:27 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Output Signal
ทำงานยังไง
คืนค่า: this.output.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ComparatorBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ComparatorBlockEntity.java:21 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
แก้ state: output. เรียกต่อ: getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ComparatorBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ComparatorBlockEntity.java:15 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: putInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ComparatorBlockEntity#setOutputSignal(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ComparatorBlockEntity.java:31 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Output Signal
ทำงานยังไง
แก้ state: output.
Parameters
int i
ตัวอย่างใช้งาน
ConduitBlockEntity
- Full name:
net.minecraft.world.level.block.entity.ConduitBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ConduitBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.ConduitBlockEntity#clientTick(Level,BlockPos,BlockState,ConduitBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:80 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ clientTick ตาม implementation ของ ConduitBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGameTime(), updateShape(), updateHunting(), updateClientTarget(), animationTick(), isActive().
Parameters
Level levelBlockPos blockPosBlockState blockStateConduitBlockEntity conduitBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ConduitBlockEntity conduitBlockEntity = ...;
ConduitBlockEntity.clientTick(level, blockPos, blockState, conduitBlockEntity);
net.minecraft.world.level.block.entity.ConduitBlockEntity#ConduitBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ConduitBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
ConduitBlockEntity instance = new ConduitBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.ConduitBlockEntity#getActiveRotation(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:285 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Active Rotation
ทำงานยังไง
คืนค่า: (this.activeRotation + f) * -0.0375F.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ConduitBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:71 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ConduitBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.ConduitBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:75 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
ConduitBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.ConduitBlockEntity#isActive()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:273 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Active
ทำงานยังไง
คืนค่า: this.isActive.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ConduitBlockEntity#isHunting()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:277 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hunting
ทำงานยังไง
คืนค่า: this.isHunting.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ConduitBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:53 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: destroyTargetUUID. เรียกต่อ: hasUUID(), getUUID().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ConduitBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:63 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putUUID(), getUUID().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ConduitBlockEntity#serverTick(Level,BlockPos,BlockState,ConduitBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ConduitBlockEntity.java:96 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ ConduitBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGameTime(), updateShape(), playSound(), updateHunting(), applyEffects(), updateDestroyTarget(), isActive(), getRandom().
Parameters
Level levelBlockPos blockPosBlockState blockStateConduitBlockEntity conduitBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ConduitBlockEntity conduitBlockEntity = ...;
ConduitBlockEntity.serverTick(level, blockPos, blockState, conduitBlockEntity);
ContainerOpenersCounter
- Full name:
net.minecraft.world.level.block.entity.ContainerOpenersCounter - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ContainerOpenersCounter.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.block.entity.ContainerOpenersCounter#decrementOpeners(Player,Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:37 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ decrementOpeners ตาม implementation ของ ContainerOpenersCounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: openCount, maxInteractionRange. เรียกต่อ: onClose(), gameEvent(), openerCountChanged().
Parameters
Player playerLevel levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
ContainerOpenersCounter instance = ...;
Player player = ...;
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
instance.decrementOpeners(player, level, blockPos, blockState);
net.minecraft.world.level.block.entity.ContainerOpenersCounter#getOpenerCount()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:84 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Opener Count
ทำงานยังไง
คืนค่า: this.openCount.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ContainerOpenersCounter#incrementOpeners(Player,Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:25 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementOpeners ตาม implementation ของ ContainerOpenersCounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: openCount, maxInteractionRange. เรียกต่อ: onOpen(), gameEvent(), scheduleRecheck(), openerCountChanged(), max(), blockInteractionRange().
Parameters
Player playerLevel levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
ContainerOpenersCounter instance = ...;
Player player = ...;
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
instance.incrementOpeners(player, level, blockPos, blockState);
net.minecraft.world.level.block.entity.ContainerOpenersCounter#isOwnContainer(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:23 - Modifiers:
protected abstract - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Own Container
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Player player
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected boolean isOwnContainer(Player player) {
return super.isOwnContainer(player);
}
net.minecraft.world.level.block.entity.ContainerOpenersCounter#onClose(Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:19 - Modifiers:
protected abstract - Return:
void
คืออะไร
จัดการเหตุการณ์ Close
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Level levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void onClose(Level level, BlockPos blockPos, BlockState blockState) {
super.onClose(level, blockPos, blockState);
}
net.minecraft.world.level.block.entity.ContainerOpenersCounter#onOpen(Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:17 - Modifiers:
protected abstract - Return:
void
คืออะไร
จัดการเหตุการณ์ Open
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Level levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void onOpen(Level level, BlockPos blockPos, BlockState blockState) {
super.onOpen(level, blockPos, blockState);
}
net.minecraft.world.level.block.entity.ContainerOpenersCounter#openerCountChanged(Level,BlockPos,BlockState,int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:21 - Modifiers:
protected abstract - Return:
void
คืออะไร
ดำเนินการ openerCountChanged ตาม implementation ของ ContainerOpenersCounter
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Level levelBlockPos blockPosBlockState blockStateint iint j
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void openerCountChanged(Level level, BlockPos blockPos, BlockState blockState, int i, int j) {
super.openerCountChanged(level, blockPos, blockState, i, j);
}
net.minecraft.world.level.block.entity.ContainerOpenersCounter#recheckOpeners(Level,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ContainerOpenersCounter.java:54 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recheckOpeners ตาม implementation ของ ContainerOpenersCounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: maxInteractionRange, openCount. เรียกต่อ: getPlayersWithContainerOpen(), max(), blockInteractionRange(), size(), onOpen(), gameEvent(), onClose(), openerCountChanged().
Parameters
Level levelBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
ContainerOpenersCounter instance = ...;
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
instance.recheckOpeners(level, blockPos, blockState);
CrafterBlockEntity
- Full name:
net.minecraft.world.level.block.entity.CrafterBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CrafterBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity - Implements:
CraftingContainer
net.minecraft.world.level.block.entity.CrafterBlockEntity#canPlaceItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:84 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), getCount(), getMaxStackSize(), isEmpty(), smallerStackExist(). มีจุด return อย่างน้อย 3 จุด.
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
CrafterBlockEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canPlaceItem(0, itemStack);
net.minecraft.world.level.block.entity.CrafterBlockEntity#CrafterBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:59 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CrafterBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CrafterBlockEntity instance = new CrafterBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.CrafterBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:68 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: CrafterMenu. คืนค่า: new CrafterMenu(i, inventory, this, this.containerData).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.CrafterBlockEntity#fillStackedContents(StackedItemContents)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:203 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillStackedContents ตาม implementation ของ CrafterBlockEntity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: accountSimpleStack().
Parameters
StackedItemContents stackedItemContents
ตัวอย่างใช้งาน
CrafterBlockEntity instance = ...;
StackedItemContents stackedItemContents = ...;
instance.fillStackedContents(stackedItemContents);
net.minecraft.world.level.block.entity.CrafterBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:148 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:63 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.crafter").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getHeight()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:198 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:164 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.items.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:183 - Modifiers:
public - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getRedstoneSignal()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:249 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Redstone Signal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getContainerSize(), getItem(), isEmpty(), isSlotDisabled(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#getWidth()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:193 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Width
ทำงานยังไง
คืนค่า: 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:153 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#isSlotDisabled(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:80 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Slot Disabled
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: i >= 0 && i < 9 ? this.containerData.get(i) == 1 : false.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#isTriggered()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:230 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Triggered
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.containerData.get(9) == 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:112 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: craftingTicksRemaining, items. เรียกต่อ: getInt(), withSize(), getContainerSize(), tryLoadLootTable(), loadAllItems(), getIntArray(), set(), slotCanBeDisabled().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CrafterBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:136 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), trySaveLootTable(), saveAllItems(), addDisabledSlots(), addTriggered().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CrafterBlockEntity#serverTick(Level,BlockPos,BlockState,CrafterBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:235 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ CrafterBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setBlock(), setValue().
Parameters
Level levelBlockPos blockPosBlockState blockStateCrafterBlockEntity crafterBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
CrafterBlockEntity crafterBlockEntity = ...;
CrafterBlockEntity.serverTick(level, blockPos, blockState, crafterBlockEntity);
net.minecraft.world.level.block.entity.CrafterBlockEntity#setCraftingTicksRemaining(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:245 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Crafting Ticks Remaining
ทำงานยังไง
แก้ state: craftingTicksRemaining.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:169 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSlotDisabled(), setSlotState().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:188 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.CrafterBlockEntity#setSlotState(int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:73 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Slot State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: slotCanBeDisabled(), set(), setChanged().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#setTriggered(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:226 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Triggered
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CrafterBlockEntity#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CrafterBlockEntity.java:178 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ CrafterBlockEntity
ทำงานยังไง
เรียกต่อ: stillValidBlockEntity(). คืนค่า: Container.stillValidBlockEntity(this, player).
Parameters
Player player
ตัวอย่างใช้งาน
CrafterBlockEntity instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
CreakingHeartBlockEntity
- Full name:
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#computeAnalogOutputSignal()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:315 - Modifiers:
public - Return:
int
คืออะไร
คำนวณ Analog Output Signal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCreakingProtector(), isEmpty(), distanceToCreaking(), clamp(), floor(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#CreakingHeartBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:65 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CreakingHeartBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
CreakingHeartBlockEntity instance = new CreakingHeartBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#creakingHurt()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:214 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ creakingHurt ตาม implementation ของ CreakingHeartBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: emitter, emitterTarget. เรียกต่อ: getCreakingProtector(), orElse(), emitParticles(), getRandom(), nextIntBetweenInclusive(), spreadResin(), ifPresent(), playSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#getAnalogOutputSignal()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:311 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Analog Output Signal
ทำงานยังไง
คืนค่า: this.outputSignal.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:205 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CreakingHeartBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:209 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
CreakingHeartBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#isProtector(Creaking)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:307 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Protector
ทำงานยังไง
เรียกต่อ: getCreakingProtector(), map(), orElse(). คืนค่า: this.getCreakingProtector().map(creaking2 -> creaking2 == creaking).orElse(false).
Parameters
Creaking creaking
ตัวอย่างใช้งาน
CreakingHeartBlockEntity instance = ...;
Creaking creaking = ...;
boolean result = instance.isProtector(creaking);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:325 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), setCreakingInfo(), getUUID(), clearCreakingInfo().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#removeProtector(DamageSource)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:293 - Modifiers:
public - Return:
void
คืออะไร
ลบ Protector
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCreakingProtector(), orElse(), tearDown(), creakingDeathEffects(), setTearingDown(), setHealth(), clearCreakingInfo().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
CreakingHeartBlockEntity instance = ...;
DamageSource damageSource = ...;
instance.removeProtector(damageSource);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:335 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putUUID(), map().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#serverTick(Level,BlockPos,BlockState,CreakingHeartBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:69 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ CreakingHeartBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: computeAnalogOutputSignal(), updateNeighbourForOutputSignal(), emitParticles(), getCreakingProtector(), ifPresent(), getBoundingBox(), getCenter(), atCenterOf().
Parameters
Level levelBlockPos blockPosBlockState blockStateCreakingHeartBlockEntity creakingHeartBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
CreakingHeartBlockEntity creakingHeartBlockEntity = ...;
CreakingHeartBlockEntity.serverTick(level, blockPos, blockState, creakingHeartBlockEntity);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#setCreakingInfo(Creaking)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:146 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Creaking Info
ทำงานยังไง
แก้ state: creakingInfo. เรียกต่อ: left(), setChanged().
Parameters
Creaking creaking
ตัวอย่างใช้งาน
CreakingHeartBlockEntity instance = ...;
Creaking creaking = ...;
instance.setCreakingInfo(creaking);
net.minecraft.world.level.block.entity.CreakingHeartBlockEntity#setCreakingInfo(UUID)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/CreakingHeartBlockEntity.java:151 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Creaking Info
ทำงานยังไง
แก้ state: creakingInfo, ticksExisted. เรียกต่อ: right(), setChanged().
Parameters
UUID uUID
ตัวอย่างใช้งาน
DaylightDetectorBlockEntity
- Full name:
net.minecraft.world.level.block.entity.DaylightDetectorBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/DaylightDetectorBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.DaylightDetectorBlockEntity#DaylightDetectorBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DaylightDetectorBlockEntity.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DaylightDetectorBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DaylightDetectorBlockEntity instance = new DaylightDetectorBlockEntity(blockPos, blockState);
DecoratedPotBlockEntity
- Full name:
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
RandomizableContainer,ContainerSingleItem.BlockContainerSingleItem
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:113 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: decorations, item. เรียกต่อ: getOrDefault(), copyOne().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:106 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ DecoratedPotBlockEntity
ทำงานยังไง
เรียกต่อ: set(), fromItems(), of().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#createDecoratedPotItem(PotDecorations)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:79 - Modifiers:
public static - Return:
ItemStack
คืออะไร
สร้าง Decorated Pot Item
ทำงานยังไง
เรียกต่อ: getDefaultInstance(), set(). คืนค่า: itemStack.
Parameters
PotDecorations potDecorations
ตัวอย่างใช้งาน
PotDecorations potDecorations = ...;
ItemStack result = DecoratedPotBlockEntity.createDecoratedPotItem(potDecorations);
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#DecoratedPotBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DecoratedPotBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: decorations.
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DecoratedPotBlockEntity instance = new DecoratedPotBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getContainerBlockEntity()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:150 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Container Block Entity
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getDecorations()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:75 - Modifiers:
public - Return:
PotDecorations
คืออะไร
อ่านค่า Decorations
ทำงานยังไง
คืนค่า: this.decorations.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getDirection()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:71 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Direction
ทำงานยังไง
เรียกต่อ: getBlockState(), getValue(). คืนค่า: this.getBlockState().getValue(BlockStateProperties.HORIZONTAL_FACING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getLootTable()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:85 - Modifiers:
public - Return:
ResourceKey<LootTable>
คืออะไร
อ่านค่า Loot Table
ทำงานยังไง
คืนค่า: this.lootTable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:96 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Loot Table Seed
ทำงานยังไง
คืนค่า: this.lootTableSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getTheItem()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:127 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า The Item
ทำงานยังไง
เรียกต่อ: unpackLootTable(). คืนค่า: this.item.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:62 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DecoratedPotBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:66 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
DecoratedPotBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:49 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: decorations, item. เรียกต่อ: load(), tryLoadLootTable(), contains(), parse(), getCompound(), orElse().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:120 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
DecoratedPotBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:40 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: save(), trySaveLootTable(), isEmpty(), put().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#setLootTable(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:91 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table
ทำงานยังไง
แก้ state: lootTable.
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
DecoratedPotBlockEntity instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setLootTable(resourceKey);
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#setLootTableSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:101 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table Seed
ทำงานยังไง
แก้ state: lootTableSeed.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#setTheItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:144 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า The Item
ทำงานยังไง
แก้ state: item. เรียกต่อ: unpackLootTable().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#splitTheItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:133 - Modifiers:
public - Return:
ItemStack
คืออะไร
แยก The Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: item. เรียกต่อ: unpackLootTable(), split(), isEmpty(). คืนค่า: itemStack.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:161 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ DecoratedPotBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: wobbleStartedAtTick, lastWobbleStyle. เรียกต่อ: values(), getGameTime(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity#wobble(DecoratedPotBlockEntity.WobbleStyle)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotBlockEntity.java:155 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ wobble ตาม implementation ของ DecoratedPotBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isClientSide(), blockEvent(), getBlockPos(), getBlockState(), getBlock(), ordinal().
Parameters
DecoratedPotBlockEntity.WobbleStyle wobbleStyle
ตัวอย่างใช้งาน
DecoratedPotBlockEntity instance = ...;
DecoratedPotBlockEntity.WobbleStyle wobbleStyle = ...;
instance.wobble(wobbleStyle);
DecoratedPotPatterns
- Full name:
net.minecraft.world.level.block.entity.DecoratedPotPatterns - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/DecoratedPotPatterns.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.entity.DecoratedPotPatterns#bootstrap(Registry<DecoratedPotPattern>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotPatterns.java:73 - Modifiers:
public static - Return:
DecoratedPotPattern
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ DecoratedPotPatterns
ทำงานยังไง
เรียกต่อ: register(). คืนค่า: register(registry, BLANK, "decorated_pot_side").
Parameters
Registry<DecoratedPotPattern> registry
ตัวอย่างใช้งาน
Registry<DecoratedPotPattern> registry = ...;
DecoratedPotPattern result = DecoratedPotPatterns.bootstrap(registry);
net.minecraft.world.level.block.entity.DecoratedPotPatterns#getPatternFromItem(Item)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DecoratedPotPatterns.java:64 - Modifiers:
public static - Return:
ResourceKey<DecoratedPotPattern>
คืออะไร
อ่านค่า Pattern From Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: ITEM_TO_POT_TEXTURE.get(item).
Parameters
Item item
ตัวอย่างใช้งาน
Item item = ...;
ResourceKey<DecoratedPotPattern> result = DecoratedPotPatterns.getPatternFromItem(item);
DispenserBlockEntity
- Full name:
net.minecraft.world.level.block.entity.DispenserBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/DispenserBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.DispenserBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:104 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: DispenserMenu. คืนค่า: new DispenserMenu(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.DispenserBlockEntity#DispenserBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:20 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DispenserBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
DispenserBlockEntity instance = new DispenserBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.DispenserBlockEntity#DispenserBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DispenserBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DispenserBlockEntity instance = new DispenserBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.DispenserBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:28 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
คืนค่า: 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DispenserBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:72 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.dispenser").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DispenserBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:94 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.DispenserBlockEntity#getRandomSlot(RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:33 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Random Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: unpackLootTable(), size(), get(), isEmpty(), nextInt(). คืนค่า: i.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
DispenserBlockEntity instance = ...;
RandomSource randomSource = ...;
int result = instance.getRandomSlot(randomSource);
net.minecraft.world.level.block.entity.DispenserBlockEntity#insertItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:47 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ insertItem ตาม implementation ของ DispenserBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMaxStackSize(), size(), get(), isEmpty(), isSameItemSameComponents(), min(), getCount(), setItem(). คืนค่า: itemStack.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
DispenserBlockEntity instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.insertItem(itemStack);
net.minecraft.world.level.block.entity.DispenserBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:77 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: items. เรียกต่อ: withSize(), getContainerSize(), tryLoadLootTable(), loadAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.DispenserBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:86 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), saveAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.DispenserBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DispenserBlockEntity.java:99 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
DropperBlockEntity
- Full name:
net.minecraft.world.level.block.entity.DropperBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/DropperBlockEntity.java - Type:
class - Modifiers:
public - Extends:
DispenserBlockEntity
net.minecraft.world.level.block.entity.DropperBlockEntity#DropperBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DropperBlockEntity.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DropperBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
DropperBlockEntity instance = new DropperBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.DropperBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/DropperBlockEntity.java:12 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.dropper").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EnchantingTableBlockEntity
- Full name:
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Nameable
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:125 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: name. เรียกต่อ: get().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#bookAnimationTick(Level,BlockPos,BlockState,EnchantingTableBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:52 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ bookAnimationTick ตาม implementation ของ EnchantingTableBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getNearestPlayer(), getX(), getY(), getZ(), atan2(), nextInt(), clamp().
Parameters
Level levelBlockPos blockPosBlockState blockStateEnchantingTableBlockEntity enchantingTableBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
EnchantingTableBlockEntity enchantingTableBlockEntity = ...;
EnchantingTableBlockEntity.bookAnimationTick(level, blockPos, blockState, enchantingTableBlockEntity);
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:131 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ EnchantingTableBlockEntity
ทำงานยังไง
เรียกต่อ: set().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#EnchantingTableBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:32 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EnchantingTableBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
EnchantingTableBlockEntity instance = new EnchantingTableBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#getCustomName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:119 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Custom Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:110 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: this.name != null ? this.name : Component.translatable("container.enchant").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:44 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: name. เรียกต่อ: contains(), parseCustomNameSafe(), getString().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:137 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
EnchantingTableBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:36 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasCustomName(), putString(), toJson().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.EnchantingTableBlockEntity#setCustomName(Component)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnchantingTableBlockEntity.java:115 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Name
ทำงานยังไง
แก้ state: name.
Parameters
Component component
ตัวอย่างใช้งาน
EnchantingTableBlockEntity instance = ...;
Component component = ...;
instance.setCustomName(component);
EnderChestBlockEntity
- Full name:
net.minecraft.world.level.block.entity.EnderChestBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/EnderChestBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
LidBlockEntity
net.minecraft.world.level.block.entity.EnderChestBlockEntity#EnderChestBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:54 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EnderChestBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
EnderChestBlockEntity instance = new EnderChestBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.EnderChestBlockEntity#getOpenNess(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:94 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Open Ness
ทำงานยังไง
เรียกต่อ: getOpenness(). คืนค่า: this.chestLidController.getOpenness(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnderChestBlockEntity#lidAnimateTick(Level,BlockPos,BlockState,EnderChestBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:58 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ lidAnimateTick ตาม implementation ของ EnderChestBlockEntity
ทำงานยังไง
เรียกต่อ: tickLid().
Parameters
Level levelBlockPos blockPosBlockState blockStateEnderChestBlockEntity enderChestBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
EnderChestBlockEntity enderChestBlockEntity = ...;
EnderChestBlockEntity.lidAnimateTick(level, blockPos, blockState, enderChestBlockEntity);
net.minecraft.world.level.block.entity.EnderChestBlockEntity#recheckOpen()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:88 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recheckOpen ตาม implementation ของ EnderChestBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: recheckOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnderChestBlockEntity#startOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:72 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), incrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnderChestBlockEntity#stillValid(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:84 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ stillValid ตาม implementation ของ EnderChestBlockEntity
ทำงานยังไง
เรียกต่อ: stillValidBlockEntity(). คืนค่า: Container.stillValidBlockEntity(this, player).
Parameters
Player player
ตัวอย่างใช้งาน
EnderChestBlockEntity instance = ...;
Player player = ...;
boolean result = instance.stillValid(player);
net.minecraft.world.level.block.entity.EnderChestBlockEntity#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:78 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), decrementOpeners(), getLevel(), getBlockPos(), getBlockState().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.EnderChestBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/EnderChestBlockEntity.java:62 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ EnderChestBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldBeOpen(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
FuelValues
- Full name:
net.minecraft.world.level.block.entity.FuelValues - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/FuelValues.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.entity.FuelValues#burnDuration(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:34 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ burnDuration ตาม implementation ของ FuelValues
ทำงานยังไง
เรียกต่อ: isEmpty(), getInt(), getItem(). คืนค่า: itemStack.isEmpty() ? 0 : this.values.getInt(itemStack.getItem()).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
FuelValues instance = ...;
ItemStack itemStack = ...;
int result = instance.burnDuration(itemStack);
net.minecraft.world.level.block.entity.FuelValues#fuelItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:30 - Modifiers:
public - Return:
SequencedSet<Item>
คืออะไร
ดำเนินการ fuelItems ตาม implementation ของ FuelValues
ทำงานยังไง
เรียกต่อ: unmodifiableSequencedSet(), keySet(). คืนค่า: Collections.unmodifiableSequencedSet(this.values.keySet()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.FuelValues#isFuel(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fuel
ทำงานยังไง
เรียกต่อ: containsKey(), getItem(). คืนค่า: this.values.containsKey(itemStack.getItem()).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.FuelValues#vanillaBurnTimes(HolderLookup.Provider,FeatureFlagSet)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:38 - Modifiers:
public static - Return:
FuelValues
คืออะไร
ดำเนินการ vanillaBurnTimes ตาม implementation ของ FuelValues
ทำงานยังไง
คืนค่า: vanillaBurnTimes(provider, featureFlagSet, 200).
Parameters
HolderLookup.Provider providerFeatureFlagSet featureFlagSet
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
FeatureFlagSet featureFlagSet = ...;
FuelValues result = FuelValues.vanillaBurnTimes(provider, featureFlagSet);
net.minecraft.world.level.block.entity.FuelValues#vanillaBurnTimes(HolderLookup.Provider,FeatureFlagSet,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:42 - Modifiers:
public static - Return:
FuelValues
คืออะไร
ดำเนินการ vanillaBurnTimes ตาม implementation ของ FuelValues
ทำงานยังไง
เรียกต่อ: Builder(), add(), remove(), build(). สร้างออบเจ็กต์: FuelValues.Builder.
Parameters
HolderLookup.Provider providerFeatureFlagSet featureFlagSetint i
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
FeatureFlagSet featureFlagSet = ...;
FuelValues result = FuelValues.vanillaBurnTimes(provider, featureFlagSet, 0);
FuelValues$Builder
- Full name:
net.minecraft.world.level.block.entity.FuelValues$Builder - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/FuelValues.java - Type:
class - Modifiers:
public static
net.minecraft.world.level.block.entity.FuelValues$Builder#add(ItemLike,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:135 - Modifiers:
public - Return:
FuelValues.Builder
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: asItem(), putInternal(). คืนค่า: this.
Parameters
ItemLike itemLikeint i
ตัวอย่างใช้งาน
FuelValues.Builder instance = ...;
ItemLike itemLike = ...;
FuelValues.Builder result = instance.add(itemLike, 0);
net.minecraft.world.level.block.entity.FuelValues$Builder#add(TagKey<Item>,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:126 - Modifiers:
public - Return:
FuelValues.Builder
คืออะไร
เพิ่ม add
ทำงานยังไง
มีการวนลูป. เรียกต่อ: get(), ifPresent(), putInternal(), value(). คืนค่า: this.
Parameters
TagKey<Item> tagKeyint i
ตัวอย่างใช้งาน
FuelValues.Builder instance = ...;
TagKey<Item> tagKey = ...;
FuelValues.Builder result = instance.add(tagKey, 0);
net.minecraft.world.level.block.entity.FuelValues$Builder#build()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:117 - Modifiers:
public - Return:
FuelValues
คืออะไร
สร้าง build
ทำงานยังไง
สร้างออบเจ็กต์: FuelValues. คืนค่า: new FuelValues(this.values).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.FuelValues$Builder#Builder(HolderLookup.Provider,FeatureFlagSet)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:112 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FuelValues.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: items, enabledFeatures. เรียกต่อ: lookupOrThrow().
Parameters
HolderLookup.Provider providerFeatureFlagSet featureFlagSet
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
FeatureFlagSet featureFlagSet = ...;
FuelValues.Builder instance = new FuelValues.Builder(provider, featureFlagSet);
net.minecraft.world.level.block.entity.FuelValues$Builder#remove(TagKey<Item>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FuelValues.java:121 - Modifiers:
public - Return:
FuelValues.Builder
คืออะไร
ลบ remove
ทำงานยังไง
เรียกต่อ: keySet(), removeIf(), builtInRegistryHolder(), is(). คืนค่า: this.
Parameters
TagKey<Item> tagKey
ตัวอย่างใช้งาน
FuelValues.Builder instance = ...;
TagKey<Item> tagKey = ...;
FuelValues.Builder result = instance.remove(tagKey);
FurnaceBlockEntity
- Full name:
net.minecraft.world.level.block.entity.FurnaceBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/FurnaceBlockEntity.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceBlockEntity
net.minecraft.world.level.block.entity.FurnaceBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FurnaceBlockEntity.java:21 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: FurnaceMenu. คืนค่า: new FurnaceMenu(i, inventory, this, this.dataAccess).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.FurnaceBlockEntity#FurnaceBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FurnaceBlockEntity.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
FurnaceBlockEntity instance = new FurnaceBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.FurnaceBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/FurnaceBlockEntity.java:16 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.furnace").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HangingSignBlockEntity
- Full name:
net.minecraft.world.level.block.entity.HangingSignBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/HangingSignBlockEntity.java - Type:
class - Modifiers:
public - Extends:
SignBlockEntity
net.minecraft.world.level.block.entity.HangingSignBlockEntity#getMaxTextLineWidth()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HangingSignBlockEntity.java:21 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Text Line Width
ทำงานยังไง
คืนค่า: 60.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HangingSignBlockEntity#getSignInteractionFailedSoundEvent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HangingSignBlockEntity.java:26 - Modifiers:
public - Return:
SoundEvent
คืออะไร
อ่านค่า Sign Interaction Failed Sound Event
ทำงานยังไง
คืนค่า: SoundEvents.WAXED_HANGING_SIGN_INTERACT_FAIL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HangingSignBlockEntity instance = ...;
SoundEvent result = instance.getSignInteractionFailedSoundEvent();
net.minecraft.world.level.block.entity.HangingSignBlockEntity#getTextLineHeight()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HangingSignBlockEntity.java:16 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Text Line Height
ทำงานยังไง
คืนค่า: 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HangingSignBlockEntity#HangingSignBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HangingSignBlockEntity.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HangingSignBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
HangingSignBlockEntity instance = new HangingSignBlockEntity(blockPos, blockState);
Hopper
- Full name:
net.minecraft.world.level.block.entity.Hopper - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/Hopper.java - Type:
interface - Modifiers:
public - Implements:
Container
net.minecraft.world.level.block.entity.Hopper#getLevelX()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/Hopper.java:14 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า Level X
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.Hopper#getLevelY()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/Hopper.java:16 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า Level Y
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.Hopper#getLevelZ()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/Hopper.java:18 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า Level Z
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.Hopper#getSuckAabb()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/Hopper.java:10 - Modifiers:
default - Return:
AABB
คืออะไร
อ่านค่า Suck Aabb
ทำงานยังไง
คืนค่า: SUCK_AABB.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.Hopper#isGridAligned()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/Hopper.java:20 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Grid Aligned
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HopperBlockEntity
- Full name:
net.minecraft.world.level.block.entity.HopperBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/HopperBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity - Implements:
Hopper
net.minecraft.world.level.block.entity.HopperBlockEntity#addItem(Container,Container,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:278 - Modifiers:
public static - Return:
ItemStack
คืออะไร
เพิ่ม Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getSlotsForFace(), isEmpty(), tryMoveInItem(), getContainerSize(). คืนค่า: itemStack.
Parameters
Container containerContainer container2ItemStack itemStackDirection direction
ตัวอย่างใช้งาน
Container container = ...;
Container container2 = ...;
ItemStack itemStack = ...;
Direction direction = ...;
ItemStack result = HopperBlockEntity.addItem(container, container2, itemStack, direction);
net.minecraft.world.level.block.entity.HopperBlockEntity#addItem(Container,ItemEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:263 - Modifiers:
public static - Return:
boolean
คืออะไร
เพิ่ม Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItem(), copy(), isEmpty(), setItem(), discard(). คืนค่า: bl.
Parameters
Container containerItemEntity itemEntity
ตัวอย่างใช้งาน
Container container = ...;
ItemEntity itemEntity = ...;
boolean result = HopperBlockEntity.addItem(container, itemEntity);
net.minecraft.world.level.block.entity.HopperBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:450 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: HopperMenu. คืนค่า: new HopperMenu(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.HopperBlockEntity#entityInside(Level,BlockPos,BlockState,Entity,HopperBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:442 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ entityInside ตาม implementation ของ HopperBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItem(), isEmpty(), getBoundingBox(), move(), getX(), getY(), getZ(), intersects().
Parameters
Level levelBlockPos blockPosBlockState blockStateEntity entityHopperBlockEntity hopperBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
Entity entity = ...;
HopperBlockEntity hopperBlockEntity = ...;
HopperBlockEntity.entityInside(level, blockPos, blockState, entity, hopperBlockEntity);
net.minecraft.world.level.block.entity.HopperBlockEntity#getContainerAt(Level,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:357 - Modifiers:
public static - Return:
Container
คืออะไร
อ่านค่า Container At
ทำงานยังไง
เรียกต่อ: getBlockState(), getX(), getY(), getZ(). คืนค่า: getContainerAt(level, blockPos, level.getBlockState(blockPos), blockPos.getX() + 0.5, blockPos.getY() + 0.5, blockPos.getZ() + 0.5).
Parameters
Level levelBlockPos blockPos
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
Container result = HopperBlockEntity.getContainerAt(level, blockPos);
net.minecraft.world.level.block.entity.HopperBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:66 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.items.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:90 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.hopper").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:432 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.items.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#getItemsAtAndAbove(Level,Hopper)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:352 - Modifiers:
public static - Return:
List<ItemEntity>
คืออะไร
อ่านค่า Items At And Above
ทำงานยังไง
เรียกต่อ: getSuckAabb(), move(), getLevelX(), getLevelY(), getLevelZ(), getEntitiesOfClass(). คืนค่า: level.getEntitiesOfClass(ItemEntity.class, aABB, EntitySelector.ENTITY_STILL_ALIVE).
Parameters
Level levelHopper hopper
ตัวอย่างใช้งาน
Level level = ...;
Hopper hopper = ...;
List<ItemEntity> result = HopperBlockEntity.getItemsAtAndAbove(level, hopper);
net.minecraft.world.level.block.entity.HopperBlockEntity#getLevelX()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:400 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level X
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.worldPosition.getX() + 0.5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#getLevelY()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:405 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level Y
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.worldPosition.getY() + 0.5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#getLevelZ()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:410 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Level Z
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.worldPosition.getZ() + 0.5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#HopperBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:40 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HopperBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: facing. เรียกต่อ: getValue().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
HopperBlockEntity instance = new HopperBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.HopperBlockEntity#isGridAligned()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:415 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Grid Aligned
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:45 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: items, cooldownTime. เรียกต่อ: withSize(), getContainerSize(), tryLoadLootTable(), loadAllItems(), getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.HopperBlockEntity#pushItemsTick(Level,BlockPos,BlockState,HopperBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:95 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ pushItemsTick ตาม implementation ของ HopperBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGameTime(), isOnCooldown(), setCooldown(), tryMoveItems(), suckInItems().
Parameters
Level levelBlockPos blockPosBlockState blockStateHopperBlockEntity hopperBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
HopperBlockEntity hopperBlockEntity = ...;
HopperBlockEntity.pushItemsTick(level, blockPos, blockState, hopperBlockEntity);
net.minecraft.world.level.block.entity.HopperBlockEntity#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:71 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
เรียกต่อ: unpackLootTable(), getItems(). คืนค่า: ContainerHelper.removeItem(this.getItems(), i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:56 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), saveAllItems(), putInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.HopperBlockEntity#setBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:84 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
แก้ state: facing. เรียกต่อ: getValue().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:77 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: unpackLootTable(), getItems(), set(), limitSize(), getMaxStackSize().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.HopperBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:437 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: items.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.HopperBlockEntity#suckInItems(Level,Hopper)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/HopperBlockEntity.java:216 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ suckInItems ตาม implementation ของ HopperBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: containing(), getLevelX(), getLevelY(), getLevelZ(), getBlockState(), getSourceContainer(), getSlots(), tryTakeInItemFromSlot(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Level levelHopper hopper
ตัวอย่างใช้งาน
Level level = ...;
Hopper hopper = ...;
boolean result = HopperBlockEntity.suckInItems(level, hopper);
JigsawBlockEntity
- Full name:
net.minecraft.world.level.block.entity.JigsawBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/JigsawBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.JigsawBlockEntity#generate(ServerLevel,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:130 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ generate ตาม implementation ของ JigsawBlockEntity
ทำงานยังไง
เรียกต่อ: getBlockPos(), relative(), getBlockState(), getValue(), front(), registryAccess(), lookupOrThrow(), getOrThrow().
Parameters
ServerLevel serverLevelint iboolean bl
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
ServerLevel serverLevel = ...;
instance.generate(serverLevel, 0, true);
net.minecraft.world.level.block.entity.JigsawBlockEntity#getFinalState()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:53 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Final State
ทำงานยังไง
คืนค่า: this.finalState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getJoint()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:57 - Modifiers:
public - Return:
JigsawBlockEntity.JointType
คืออะไร
อ่านค่า Joint
ทำงานยังไง
คืนค่า: this.joint.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:41 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getPlacementPriority()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:61 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Placement Priority
ทำงานยังไง
คืนค่า: this.placementPriority.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getPool()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:49 - Modifiers:
public - Return:
ResourceKey<StructureTemplatePool>
คืออะไร
อ่านค่า Pool
ทำงานยังไง
คืนค่า: this.pool.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getSelectionPriority()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:65 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Selection Priority
ทำงานยังไง
คืนค่า: this.selectionPriority.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getTarget()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:45 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Target
ทำงานยังไง
คืนค่า: this.target.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:121 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.JigsawBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:125 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.JigsawBlockEntity#JigsawBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ JigsawBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
JigsawBlockEntity instance = new JigsawBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.JigsawBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:109 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
แก้ state: name, target, pool, finalState, joint, placementPriority. เรียกต่อ: parse(), getString(), create(), getJointType(), getBlockState(), getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.JigsawBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:97 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: putString(), toString(), location(), getSerializedName(), putInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.JigsawBlockEntity#setFinalState(String)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:81 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Final State
ทำงานยังไง
แก้ state: finalState.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#setJoint(JigsawBlockEntity.JointType)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:85 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Joint
ทำงานยังไง
แก้ state: joint.
Parameters
JigsawBlockEntity.JointType jointType
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
JigsawBlockEntity.JointType jointType = ...;
instance.setJoint(jointType);
net.minecraft.world.level.block.entity.JigsawBlockEntity#setName(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:69 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Name
ทำงานยังไง
แก้ state: name.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
ResourceLocation resourceLocation = ...;
instance.setName(resourceLocation);
net.minecraft.world.level.block.entity.JigsawBlockEntity#setPlacementPriority(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:89 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Placement Priority
ทำงานยังไง
แก้ state: placementPriority.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#setPool(ResourceKey<StructureTemplatePool>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:77 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pool
ทำงานยังไง
แก้ state: pool.
Parameters
ResourceKey<StructureTemplatePool> resourceKey
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
ResourceKey<StructureTemplatePool> resourceKey = ...;
instance.setPool(resourceKey);
net.minecraft.world.level.block.entity.JigsawBlockEntity#setSelectionPriority(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:93 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Selection Priority
ทำงานยังไง
แก้ state: selectionPriority.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity#setTarget(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:73 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Target
ทำงานยังไง
แก้ state: target.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
JigsawBlockEntity instance = ...;
ResourceLocation resourceLocation = ...;
instance.setTarget(resourceLocation);
JigsawBlockEntity$JointType
- Full name:
net.minecraft.world.level.block.entity.JigsawBlockEntity$JointType - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/JigsawBlockEntity.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.entity.JigsawBlockEntity$JointType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:148 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JigsawBlockEntity$JointType#getTranslatedName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JigsawBlockEntity.java:153 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Translated Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("jigsaw_block.joint." + this.name).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
JukeboxBlockEntity
- Full name:
net.minecraft.world.level.block.entity.JukeboxBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/JukeboxBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
ContainerSingleItem.BlockContainerSingleItem
net.minecraft.world.level.block.entity.JukeboxBlockEntity#canPlaceItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:137 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item
ทำงานยังไง
เรียกต่อ: has(), getItem(), isEmpty(). คืนค่า: itemStack.has(DataComponents.JUKEBOX_PLAYABLE) && this.getItem(i).isEmpty().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
JukeboxBlockEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canPlaceItem(0, itemStack);
net.minecraft.world.level.block.entity.JukeboxBlockEntity#canTakeItem(Container,int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:142 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item
ทำงานยังไง
เรียกต่อ: hasAnyMatching(). คืนค่า: container.hasAnyMatching(ItemStack::isEmpty).
Parameters
Container containerint iItemStack itemStack
ตัวอย่างใช้งาน
JukeboxBlockEntity instance = ...;
Container container = ...;
ItemStack itemStack = ...;
boolean result = instance.canTakeItem(container, 0, itemStack);
net.minecraft.world.level.block.entity.JukeboxBlockEntity#getComparatorOutput()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:67 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Comparator Output
ทำงานยังไง
เรียกต่อ: fromStack(), registryAccess(), map(), orElse(). คืนค่า: JukeboxSong.fromStack(this.level.registryAccess(), this.item).map(Holder::value).map(JukeboxSong::comparatorOutput).orElse(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#getContainerBlockEntity()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:132 - Modifiers:
public - Return:
BlockEntity
คืออะไร
อ่านค่า Container Block Entity
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#getMaxStackSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:127 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Stack Size
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#getSongPlayer()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:32 - Modifiers:
public - Return:
JukeboxSongPlayer
คืออะไร
อ่านค่า Song Player
ทำงานยังไง
คืนค่า: this.jukeboxSongPlayer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#getTheItem()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:102 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า The Item
ทำงานยังไง
คืนค่า: this.item.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#JukeboxBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ JukeboxBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
JukeboxBlockEntity instance = new JukeboxBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.JukeboxBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:71 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: item. เรียกต่อ: contains(), parse(), getCompound(), orElse(), isEmpty(), stop(), getBlockState(), fromStack().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.JukeboxBlockEntity#onSongChanged()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:36 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Song Changed
ทำงานยังไง
เรียกต่อ: updateNeighborsAt(), getBlockPos(), getBlockState(), getBlock(), setChanged().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#popOutTheItem()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:48 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popOutTheItem ตาม implementation ของ JukeboxBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockPos(), getTheItem(), isEmpty(), removeTheItem(), atLowerCornerWithOffset(), offsetRandom(), copy(), x(). สร้างออบเจ็กต์: ItemEntity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:90 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTheItem(), isEmpty(), put(), save(), getSong(), putLong(), getTicksSinceSongStarted().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.JukeboxBlockEntity#setSongItemWithoutPlaying(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:147 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Song Item Without Playing
ทำงานยังไง
แก้ state: item. เรียกต่อ: fromStack(), registryAccess(), ifPresent(), setSongWithoutPlaying(), updateNeighborsAt(), getBlockPos(), getBlockState(), getBlock().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
JukeboxBlockEntity instance = ...;
ItemStack itemStack = ...;
instance.setSongItemWithoutPlaying(itemStack);
net.minecraft.world.level.block.entity.JukeboxBlockEntity#setTheItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:114 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า The Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: item. เรียกต่อ: isEmpty(), fromStack(), registryAccess(), notifyItemChangedInJukebox(), isPresent(), play(), get(), stop().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#splitTheItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:107 - Modifiers:
public - Return:
ItemStack
คืออะไร
แยก The Item
ทำงานยังไง
เรียกต่อ: setTheItem(). คืนค่า: itemStack.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.JukeboxBlockEntity#tick(Level,BlockPos,BlockState,JukeboxBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:63 - Modifiers:
public static - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Level levelBlockPos blockPosBlockState blockStateJukeboxBlockEntity jukeboxBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
JukeboxBlockEntity jukeboxBlockEntity = ...;
JukeboxBlockEntity.tick(level, blockPos, blockState, jukeboxBlockEntity);
net.minecraft.world.level.block.entity.JukeboxBlockEntity#tryForcePlaySong()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/JukeboxBlockEntity.java:156 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tryForcePlaySong ตาม implementation ของ JukeboxBlockEntity
ทำงานยังไง
เรียกต่อ: fromStack(), registryAccess(), getTheItem(), ifPresent(), play().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LecternBlockEntity
- Full name:
net.minecraft.world.level.block.entity.LecternBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/LecternBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Clearable,MenuProvider
net.minecraft.world.level.block.entity.LecternBlockEntity#clearContent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:219 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Content
ทำงานยังไง
เรียกต่อ: setBook().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:224 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: LecternMenu. คืนค่า: new LecternMenu(i, this.bookAccess, this.dataAccess).
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
LecternBlockEntity instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.level.block.entity.LecternBlockEntity#getBook()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:131 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Book
ทำงานยังไง
คืนค่า: this.book.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:229 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.lectern").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#getPage()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:165 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Page
ทำงานยังไง
คืนค่า: this.page.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#getRedstoneSignal()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:169 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Redstone Signal
ทำงานยังไง
เรียกต่อ: getPage(), floor(), hasBook(). คืนค่า: Mth.floor(f * 14.0F) + (this.hasBook() ? 1 : 0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#hasBook()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:135 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Book
ทำงานยังไง
เรียกต่อ: has(). คืนค่า: this.book.has(DataComponents.WRITABLE_BOOK_CONTENT) || this.book.has(DataComponents.WRITTEN_BOOK_CONTENT).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#LecternBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:127 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LecternBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
LecternBlockEntity instance = new LecternBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.LecternBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:197 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: book, pageCount, page. เรียกต่อ: contains(), resolveBook(), parse(), getCompound(), orElse(), getPageCount(), clamp(), getInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.LecternBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:210 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBook(), isEmpty(), put(), save(), putInt().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.LecternBlockEntity#setBook(ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:139 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Book
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.LecternBlockEntity#setBook(ItemStack,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LecternBlockEntity.java:149 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Book
ทำงานยังไง
แก้ state: book, page, pageCount. เรียกต่อ: resolveBook(), getPageCount(), setChanged().
Parameters
ItemStack itemStackPlayer player
ตัวอย่างใช้งาน
LecternBlockEntity instance = ...;
ItemStack itemStack = ...;
Player player = ...;
instance.setBook(itemStack, player);
LidBlockEntity
- Full name:
net.minecraft.world.level.block.entity.LidBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/LidBlockEntity.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.block.entity.LidBlockEntity#getOpenNess(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/LidBlockEntity.java:4 - Modifiers: ``
- Return:
float
คืออะไร
อ่านค่า Open Ness
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
PotDecorations
- Full name:
net.minecraft.world.level.block.entity.PotDecorations - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/PotDecorations.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.entity.PotDecorations#load(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/PotDecorations.java:55 - Modifiers:
public static - Return:
PotDecorations
คืออะไร
โหลด load
ทำงานยังไง
เรียกต่อ: contains(), parse(), get(), result(), orElse(). คืนค่า: compoundTag != null && compoundTag.contains("sherds") ? CODEC.parse(NbtOps.INSTANCE, compoundTag.get("sherds")).result().orElse(EMPTY) : EMPTY.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.PotDecorations#ordered()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/PotDecorations.java:51 - Modifiers:
public - Return:
List<Item>
คืออะไร
ดำเนินการ ordered ตาม implementation ของ PotDecorations
ทำงานยังไง
เรียกต่อ: of(), map(), orElse(), toList(). คืนค่า: Stream.of(this.back, this.left, this.right, this.front).map(optional -> optional.orElse(Items.BRICK)).toList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.PotDecorations#PotDecorations(Item,Item,Item,Item)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/PotDecorations.java:29 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PotDecorations ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: of().
Parameters
Item itemItem item2Item item3Item item4
ตัวอย่างใช้งาน
Item item = ...;
Item item2 = ...;
Item item3 = ...;
Item item4 = ...;
PotDecorations instance = new PotDecorations(item, item2, item3, item4);
net.minecraft.world.level.block.entity.PotDecorations#save(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/PotDecorations.java:42 - Modifiers:
public - Return:
CompoundTag
คืออะไร
บันทึก save
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), put(), encodeStart(), getOrThrow(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
PotDecorations instance = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.save(compoundTag);
RandomizableContainerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java - Type:
class - Modifiers:
public abstract - Extends:
BaseContainerBlockEntity - Implements:
RandomizableContainer
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:94 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lootTable, lootTableSeed. เรียกต่อ: get(), lootTable(), seed().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#canOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Open
ทำงานยังไง
แก้ state: lootTable. เรียกต่อ: isSpectator(). คืนค่า: super.canOpen(player) && (this.lootTable == null || !player.isSpectator()).
Parameters
Player player
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
Player player = ...;
boolean result = instance.canOpen(player);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:104 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ RandomizableContainerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: set(). สร้างออบเจ็กต์: SeededContainerLoot.
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#createMenu(int,Inventory,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:83 - Modifiers:
public - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canOpen(), unpackLootTable(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iInventory inventoryPlayer player
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
Inventory inventory = ...;
Player player = ...;
AbstractContainerMenu result = instance.createMenu(0, inventory, player);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#getItem(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:54 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: unpackLootTable(). คืนค่า: super.getItem(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#getLootTable()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:27 - Modifiers:
public - Return:
ResourceKey<LootTable>
คืออะไร
อ่านค่า Loot Table
ทำงานยังไง
คืนค่า: this.lootTable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
ResourceKey<LootTable> result = instance.getLootTable();
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#getLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:38 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Loot Table Seed
ทำงานยังไง
คืนค่า: this.lootTableSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:48 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
เรียกต่อ: unpackLootTable(). คืนค่า: super.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#RandomizableContainerBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:23 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RandomizableContainerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
RandomizableContainerBlockEntity instance = new RandomizableContainerBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:112 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#removeItem(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:60 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item
ทำงานยังไง
เรียกต่อ: unpackLootTable(). คืนค่า: super.removeItem(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#removeItemNoUpdate(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:66 - Modifiers:
public - Return:
ItemStack
คืออะไร
ลบ Item No Update
ทำงานยังไง
เรียกต่อ: unpackLootTable(). คืนค่า: super.removeItemNoUpdate(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#setItem(int,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:72 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item
ทำงานยังไง
เรียกต่อ: unpackLootTable().
Parameters
int iItemStack itemStack
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
ItemStack itemStack = ...;
instance.setItem(0, itemStack);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#setLootTable(ResourceKey<LootTable>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:33 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table
ทำงานยังไง
แก้ state: lootTable.
Parameters
ResourceKey<LootTable> resourceKey
ตัวอย่างใช้งาน
RandomizableContainerBlockEntity instance = ...;
ResourceKey<LootTable> resourceKey = ...;
instance.setLootTable(resourceKey);
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity#setLootTableSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/RandomizableContainerBlockEntity.java:43 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Loot Table Seed
ทำงานยังไง
แก้ state: lootTableSeed.
Parameters
long l
ตัวอย่างใช้งาน
SculkCatalystBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
GameEventListener.Provider<SculkCatalystBlockEntity.CatalystListener>
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity#getListener()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:54 - Modifiers:
public - Return:
SculkCatalystBlockEntity.CatalystListener
คืออะไร
อ่านค่า Listener
ทำงานยังไง
คืนค่า: this.catalystListener.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkCatalystBlockEntity instance = ...;
SculkCatalystBlockEntity.CatalystListener result = instance.getListener();
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:42 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
เรียกต่อ: load().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:48 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: save().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity#SculkCatalystBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkCatalystBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: catalystListener. เรียกต่อ: CatalystListener(). สร้างออบเจ็กต์: SculkCatalystBlockEntity.CatalystListener, BlockPositionSource.
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SculkCatalystBlockEntity instance = new SculkCatalystBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity#serverTick(Level,BlockPos,BlockState,SculkCatalystBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:38 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ SculkCatalystBlockEntity
ทำงานยังไง
เรียกต่อ: getSculkSpreader(), updateCursors(), getRandom().
Parameters
Level levelBlockPos blockPosBlockState blockStateSculkCatalystBlockEntity sculkCatalystBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SculkCatalystBlockEntity sculkCatalystBlockEntity = ...;
SculkCatalystBlockEntity.serverTick(level, blockPos, blockState, sculkCatalystBlockEntity);
SculkCatalystBlockEntity$CatalystListener
- Full name:
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java - Type:
class - Modifiers:
public static - Implements:
GameEventListener
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#CatalystListener(BlockState,PositionSource)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:64 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkCatalystBlockEntity.CatalystListener ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: blockState, positionSource, sculkSpreader. เรียกต่อ: createLevelSpreader().
Parameters
BlockState blockStatePositionSource positionSource
ตัวอย่างใช้งาน
BlockState blockState = ...;
PositionSource positionSource = ...;
SculkCatalystBlockEntity.CatalystListener instance = new SculkCatalystBlockEntity.CatalystListener(blockState, positionSource);
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#getDeliveryMode()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:80 - Modifiers:
public - Return:
GameEventListener.DeliveryMode
คืออะไร
อ่านค่า Delivery Mode
ทำงานยังไง
คืนค่า: GameEventListener.DeliveryMode.BY_DISTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkCatalystBlockEntity.CatalystListener instance = ...;
GameEventListener.DeliveryMode result = instance.getDeliveryMode();
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#getListenerRadius()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:75 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Listener Radius
ทำงานยังไง
คืนค่า: 8.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkCatalystBlockEntity.CatalystListener instance = ...;
int result = instance.getListenerRadius();
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#getListenerSource()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:70 - Modifiers:
public - Return:
PositionSource
คืออะไร
อ่านค่า Listener Source
ทำงานยังไง
คืนค่า: this.positionSource.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkCatalystBlockEntity.CatalystListener instance = ...;
PositionSource result = instance.getListenerSource();
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#getSculkSpreader()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:108 - Modifiers:
public - Return:
SculkSpreader
คืออะไร
อ่านค่า Sculk Spreader
ทำงานยังไง
คืนค่า: this.sculkSpreader.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkCatalystBlockEntity.CatalystListener instance = ...;
SculkSpreader result = instance.getSculkSpreader();
net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener#handleGameEvent(ServerLevel,Holder<GameEvent>,GameEvent.Context,Vec3)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkCatalystBlockEntity.java:85 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการ Game Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), sourceEntity(), wasExperienceConsumed(), getLastDamageSource(), getExperienceReward(), map(), shouldDropExperience(), addCursors(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelHolder<GameEvent> holderGameEvent.Context contextVec3 vec3
ตัวอย่างใช้งาน
SculkCatalystBlockEntity.CatalystListener instance = ...;
ServerLevel serverLevel = ...;
Holder<GameEvent> holder = ...;
GameEvent.Context context = ...;
Vec3 vec3 = ...;
boolean result = instance.handleGameEvent(serverLevel, holder, context, vec3);
SculkSensorBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SculkSensorBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
GameEventListener.Provider<VibrationSystem.Listener>,VibrationSystem
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#createVibrationUser()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:40 - Modifiers:
public - Return:
VibrationSystem.User
คืออะไร
สร้าง Vibration User
ทำงานยังไง
เรียกต่อ: VibrationUser(), getBlockPos(). สร้างออบเจ็กต์: SculkSensorBlockEntity.VibrationUser. คืนค่า: new SculkSensorBlockEntity.VibrationUser(this.getBlockPos()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkSensorBlockEntity instance = ...;
VibrationSystem.User result = instance.createVibrationUser();
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#getLastVibrationFrequency()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:78 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Last Vibration Frequency
ทำงานยังไง
คืนค่า: this.lastVibrationFrequency.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#getListener()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:86 - Modifiers:
public - Return:
VibrationSystem.Listener
คืออะไร
อ่านค่า Listener
ทำงานยังไง
คืนค่า: this.vibrationListener.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#getVibrationData()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:68 - Modifiers:
public - Return:
VibrationSystem.Data
คืออะไร
อ่านค่า Vibration Data
ทำงานยังไง
คืนค่า: this.vibrationData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#getVibrationUser()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:73 - Modifiers:
public - Return:
VibrationSystem.User
คืออะไร
อ่านค่า Vibration User
ทำงานยังไง
คืนค่า: this.vibrationUser.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:44 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: lastVibrationFrequency, vibrationData. เรียกต่อ: getInt(), createSerializationContext(), contains(), parse(), getCompound(), resultOrPartial(), error(), ifPresent().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:57 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
มีการวนลูป. เรียกต่อ: putInt(), createSerializationContext(), encodeStart(), resultOrPartial(), error(), ifPresent(), put().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#SculkSensorBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:30 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkSensorBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: vibrationData, vibrationListener. เรียกต่อ: Data(), Listener(). สร้างออบเจ็กต์: VibrationSystem.Data, VibrationSystem.Listener.
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SculkSensorBlockEntity instance = new SculkSensorBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#SculkSensorBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:36 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkSensorBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SculkSensorBlockEntity instance = new SculkSensorBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.SculkSensorBlockEntity#setLastVibrationFrequency(int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:82 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Last Vibration Frequency
ทำงานยังไง
แก้ state: lastVibrationFrequency.
Parameters
int i
ตัวอย่างใช้งาน
SculkSensorBlockEntity$VibrationUser
- Full name:
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java - Type:
class - Modifiers:
protected - Implements:
VibrationSystem.User
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#canReceiveVibration(ServerLevel,BlockPos,Holder<GameEvent>,GameEvent.Context)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:115 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Receive Vibration
ทำงานยังไง
เรียกต่อ: equals(), is(), canActivate(), getBlockState().
Parameters
ServerLevel serverLevelBlockPos blockPosHolder<GameEvent> holderGameEvent.Context context
ตัวอย่างใช้งาน
SculkSensorBlockEntity.VibrationUser instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
Holder<GameEvent> holder = ...;
GameEvent.Context context = ...;
boolean result = instance.canReceiveVibration(serverLevel, blockPos, holder, context);
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#canTriggerAvoidVibration()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:110 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Trigger Avoid Vibration
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkSensorBlockEntity.VibrationUser instance = ...;
boolean result = instance.canTriggerAvoidVibration();
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#getListenerRadius()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:100 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Listener Radius
ทำงานยังไง
คืนค่า: 8.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#getPositionSource()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:105 - Modifiers:
public - Return:
PositionSource
คืออะไร
อ่านค่า Position Source
ทำงานยังไง
คืนค่า: this.positionSource.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkSensorBlockEntity.VibrationUser instance = ...;
PositionSource result = instance.getPositionSource();
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#onDataChanged()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:136 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Data Changed
ทำงานยังไง
เรียกต่อ: setChanged().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#onReceiveVibration(ServerLevel,BlockPos,Holder<GameEvent>,Entity,Entity,float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:122 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Receive Vibration
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), canActivate(), setLastVibrationFrequency(), getGameEventFrequency(), getRedstoneStrengthForDistance(), getListenerRadius(), getBlock(), activate().
Parameters
ServerLevel serverLevelBlockPos blockPosHolder<GameEvent> holderEntity entityEntity entity2float f
ตัวอย่างใช้งาน
SculkSensorBlockEntity.VibrationUser instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
Holder<GameEvent> holder = ...;
Entity entity = ...;
Entity entity2 = ...;
instance.onReceiveVibration(serverLevel, blockPos, holder, entity, entity2, 0.0F);
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#requiresAdjacentChunksToBeTicking()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:141 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ requiresAdjacentChunksToBeTicking ตาม implementation ของ SculkSensorBlockEntity$VibrationUser
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkSensorBlockEntity.VibrationUser instance = ...;
boolean result = instance.requiresAdjacentChunksToBeTicking();
net.minecraft.world.level.block.entity.SculkSensorBlockEntity$VibrationUser#VibrationUser(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkSensorBlockEntity.java:95 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkSensorBlockEntity.VibrationUser ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: blockPos, positionSource. สร้างออบเจ็กต์: BlockPositionSource.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
SculkSensorBlockEntity.VibrationUser instance = new SculkSensorBlockEntity.VibrationUser(blockPos);
SculkShriekerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
GameEventListener.Provider<VibrationSystem.Listener>,VibrationSystem
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#getListener()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:181 - Modifiers:
public - Return:
VibrationSystem.Listener
คืออะไร
อ่านค่า Listener
ทำงานยังไง
คืนค่า: this.vibrationListener.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#getVibrationData()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:68 - Modifiers:
public - Return:
VibrationSystem.Data
คืออะไร
อ่านค่า Vibration Data
ทำงานยังไง
คืนค่า: this.vibrationData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#getVibrationUser()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:73 - Modifiers:
public - Return:
VibrationSystem.User
คืออะไร
อ่านค่า Vibration User
ทำงานยังไง
คืนค่า: this.vibrationUser.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:78 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: warningLevel, vibrationData. เรียกต่อ: contains(), getInt(), createSerializationContext(), parse(), getCompound(), resultOrPartial(), error(), ifPresent().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:94 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
มีการวนลูป. เรียกต่อ: putInt(), createSerializationContext(), encodeStart(), resultOrPartial(), error(), ifPresent(), put().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#SculkShriekerBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:64 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SculkShriekerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SculkShriekerBlockEntity instance = new SculkShriekerBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#tryGetPlayer(Entity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:105 - Modifiers:
public static - Return:
ServerPlayer
คืออะไร
ดำเนินการ tryGetPlayer ตาม implementation ของ SculkShriekerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getControllingPassenger(), getOwner(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#tryRespond(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:151 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tryRespond ตาม implementation ของ SculkShriekerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canRespond(), trySummonWarden(), playWardenReplySound(), applyDarknessAround(), atCenterOf(), getBlockPos().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
SculkShriekerBlockEntity instance = ...;
ServerLevel serverLevel = ...;
instance.tryRespond(serverLevel);
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity#tryShriek(ServerLevel,ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SculkShriekerBlockEntity.java:118 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tryShriek ตาม implementation ของ SculkShriekerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: warningLevel. เรียกต่อ: getBlockState(), getValue(), canRespond(), tryToWarn(), shriek().
Parameters
ServerLevel serverLevelServerPlayer serverPlayer
ตัวอย่างใช้งาน
SculkShriekerBlockEntity instance = ...;
ServerLevel serverLevel = ...;
ServerPlayer serverPlayer = ...;
instance.tryShriek(serverLevel, serverPlayer);
ShulkerBoxBlockEntity
- Full name:
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java - Type:
class - Modifiers:
public - Extends:
RandomizableContainerBlockEntity - Implements:
WorldlyContainer
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#canPlaceItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:230 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Place Item Through Face
ทำงานยังไง
เรียกต่อ: byItem(), getItem(). คืนค่า: !(Block.byItem(itemStack.getItem()) instanceof ShulkerBoxBlock).
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canPlaceItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#canTakeItemThroughFace(int,ItemStack,Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:235 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Take Item Through Face
ทำงานยังไง
คืนค่า: true.
Parameters
int iItemStack itemStackDirection direction
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
ItemStack itemStack = ...;
Direction direction = ...;
boolean result = instance.canTakeItemThroughFace(0, itemStack, direction);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:249 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: ShulkerBoxMenu. คืนค่า: new ShulkerBoxMenu(i, inventory, this).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getAnimationStatus()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:103 - Modifiers:
public - Return:
ShulkerBoxBlockEntity.AnimationStatus
คืออะไร
อ่านค่า Animation Status
ทำงานยังไง
คืนค่า: this.animationStatus.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
ShulkerBoxBlockEntity.AnimationStatus result = instance.getAnimationStatus();
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getBoundingBox(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:107 - Modifiers:
public - Return:
AABB
คืออะไร
อ่านค่า Bounding Box
ทำงานยังไง
เรียกต่อ: getProgressAabb(), getValue(), getProgress(). สร้างออบเจ็กต์: Vec3. คืนค่า: Shulker.getProgressAabb(1.0F, blockState.getValue(ShulkerBoxBlock.FACING), 0.5F * this.getProgress(1.0F), vec3).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
BlockState blockState = ...;
AABB result = instance.getBoundingBox(blockState);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getColor()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:244 - Modifiers:
public - Return:
DyeColor
คืออะไร
อ่านค่า Color
ทำงานยังไง
คืนค่า: this.color.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getContainerSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:132 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Container Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.itemStacks.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:189 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.shulkerBox").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getItems()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:215 - Modifiers:
protected - Return:
NonNullList<ItemStack>
คืออะไร
อ่านค่า Items
ทำงานยังไง
คืนค่า: this.itemStacks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getProgress(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:240 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Progress
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.progressOld, this.progress).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#getSlotsForFace(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:225 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า Slots For Face
ทำงานยังไง
คืนค่า: SLOTS.
Parameters
Direction direction
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
Direction direction = ...;
int[] result = instance.getSlotsForFace(direction);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#isClosed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:254 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Closed
ทำงานยังไง
แก้ state: animationStatus. คืนค่า: this.animationStatus == ShulkerBoxBlockEntity.AnimationStatus.CLOSED.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:194 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
เรียกต่อ: loadFromTag().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#loadFromTag(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:208 - Modifiers:
public - Return:
void
คืออะไร
โหลด From Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: itemStacks. เรียกต่อ: withSize(), getContainerSize(), tryLoadLootTable(), contains(), loadAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ShulkerBoxBlockEntity instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
instance.loadFromTag(compoundTag, provider);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:200 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trySaveLootTable(), saveAllItems().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#setItems(NonNullList<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:220 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Items
ทำงานยังไง
แก้ state: itemStacks.
Parameters
NonNullList<ItemStack> nonNullList
ตัวอย่างใช้งาน
NonNullList<ItemStack> nonNullList = ...;
@Override
protected void setItems(NonNullList<ItemStack> nonNullList) {
super.setItems(nonNullList);
}
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#ShulkerBoxBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:57 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ShulkerBoxBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: color. เรียกต่อ: getBlock(), getColor().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
ShulkerBoxBlockEntity instance = new ShulkerBoxBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#ShulkerBoxBlockEntity(DyeColor,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ShulkerBoxBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: color.
Parameters
DyeColor dyeColorBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
DyeColor dyeColor = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ShulkerBoxBlockEntity instance = new ShulkerBoxBlockEntity(dyeColor, blockPos, blockState);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#startOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:160 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: openCount. เรียกต่อ: isSpectator(), blockEvent(), getBlockState(), getBlock(), gameEvent(), playSound(), nextFloat().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#stopOpen(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:176 - Modifiers:
public - Return:
void
คืออะไร
หยุด Open
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: openCount. เรียกต่อ: isSpectator(), blockEvent(), getBlockState(), getBlock(), gameEvent(), playSound(), nextFloat().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#tick(Level,BlockPos,BlockState,ShulkerBoxBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:62 - Modifiers:
public static - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
เรียกต่อ: updateAnimation().
Parameters
Level levelBlockPos blockPosBlockState blockStateShulkerBoxBlockEntity shulkerBoxBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
ShulkerBoxBlockEntity shulkerBoxBlockEntity = ...;
ShulkerBoxBlockEntity.tick(level, blockPos, blockState, shulkerBoxBlockEntity);
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java:137 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ ShulkerBoxBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: openCount, animationStatus. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
SignBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SignBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SignBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.SignBlockEntity#canExecuteClickCommands(boolean,Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:194 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Execute Click Commands
ทำงานยังไง
เรียกต่อ: isWaxed(), getText(), hasAnyClickCommands(). คืนค่า: this.isWaxed() && this.getText(bl).hasAnyClickCommands(player).
Parameters
boolean blPlayer player
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
Player player = ...;
boolean result = instance.canExecuteClickCommands(true, player);
net.minecraft.world.level.block.entity.SignBlockEntity#createDefaultSignText()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:53 - Modifiers:
protected - Return:
SignText
คืออะไร
สร้าง Default Sign Text
ทำงานยังไง
สร้างออบเจ็กต์: SignText. คืนค่า: new SignText().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#executeClickCommandsIfPresent(Player,Level,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:198 - Modifiers:
public - Return:
boolean
คืออะไร
สั่งทำงาน Click Commands If Present
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getText(), getMessages(), isTextFilteringEnabled(), getStyle(), getClickEvent(), getAction(), getServer(), getCommands(). คืนค่า: bl2.
Parameters
Player playerLevel levelBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
Player player = ...;
Level level = ...;
BlockPos blockPos = ...;
boolean result = instance.executeClickCommandsIfPresent(player, level, blockPos, true);
net.minecraft.world.level.block.entity.SignBlockEntity#getBackText()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:78 - Modifiers:
public - Return:
SignText
คืออะไร
อ่านค่า Back Text
ทำงานยังไง
คืนค่า: this.backText.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getFrontText()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:74 - Modifiers:
public - Return:
SignText
คืออะไร
อ่านค่า Front Text
ทำงานยังไง
คืนค่า: this.frontText.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getMaxTextLineWidth()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:86 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Text Line Width
ทำงานยังไง
คืนค่า: 90.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getPlayerWhoMayEdit()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:232 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า Player Who May Edit
ทำงานยังไง
คืนค่า: this.playerWhoMayEdit.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getSignInteractionFailedSoundEvent()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:274 - Modifiers:
public - Return:
SoundEvent
คืออะไร
อ่านค่า Sign Interaction Failed Sound Event
ทำงานยังไง
คืนค่า: SoundEvents.WAXED_SIGN_INTERACT_FAIL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getText(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:70 - Modifiers:
public - Return:
SignText
คืออะไร
อ่านค่า Text
ทำงานยังไง
คืนค่า: bl ? this.frontText : this.backText.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getTextLineHeight()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:82 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Text Line Height
ทำงานยังไง
คืนค่า: 10.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:219 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.SignBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:223 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.SignBlockEntity#isFacingFrontText(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Facing Front Text
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), getBlock(), getSignHitboxCenterPosition(), getX(), getBlockPos(), getZ(), getYRotationDegrees(), atan2(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player player
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
Player player = ...;
boolean result = instance.isFacingFrontText(player);
net.minecraft.world.level.block.entity.SignBlockEntity#isWaxed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:242 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Waxed
ทำงานยังไง
คืนค่า: this.isWaxed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:99 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: frontText, backText, isWaxed. เรียกต่อ: createSerializationContext(), contains(), parse(), getCompound(), resultOrPartial(), ifPresent(), loadLines(), getBoolean().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SignBlockEntity#playerIsTooFarAwayToEdit(UUID)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:256 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ playerIsTooFarAwayToEdit ตาม implementation ของ SignBlockEntity
ทำงานยังไง
เรียกต่อ: getPlayerByUUID(), canInteractWithBlock(), getBlockPos(). คืนค่า: player == null || !player.canInteractWithBlock(this.getBlockPos(), 4.0).
Parameters
UUID uUID
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
UUID uUID = ...;
boolean result = instance.playerIsTooFarAwayToEdit(uUID);
net.minecraft.world.level.block.entity.SignBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:90 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: createSerializationContext(), encodeStart(), resultOrPartial(), ifPresent(), put(), putBoolean().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SignBlockEntity#setAllowedPlayerEditor(UUID)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:228 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Allowed Player Editor
ทำงานยังไง
แก้ state: playerWhoMayEdit.
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#setText(SignText,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:170 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Text
ทำงานยังไง
เรียกต่อ: setFrontText(), setBackText(). คืนค่า: bl ? this.setFrontText(signText) : this.setBackText(signText).
Parameters
SignText signTextboolean bl
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
SignText signText = ...;
boolean result = instance.setText(signText, true);
net.minecraft.world.level.block.entity.SignBlockEntity#setWaxed(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:246 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Waxed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: isWaxed. เรียกต่อ: markUpdated(). มีจุด return อย่างน้อย 2 จุด.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignBlockEntity#SignBlockEntity(BlockEntityType,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SignBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SignBlockEntity instance = new SignBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.SignBlockEntity#SignBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:45 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SignBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SignBlockEntity instance = new SignBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.SignBlockEntity#tick(Level,BlockPos,BlockState,SignBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:261 - Modifiers:
public static - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPlayerWhoMayEdit(), clearInvalidPlayerWhoMayEdit().
Parameters
Level levelBlockPos blockPosBlockState blockStateSignBlockEntity signBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SignBlockEntity signBlockEntity = ...;
SignBlockEntity.tick(level, blockPos, blockState, signBlockEntity);
net.minecraft.world.level.block.entity.SignBlockEntity#updateSignText(Player,boolean,List<FilteredText>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:141 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Sign Text
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isWaxed(), getUUID(), equals(), getPlayerWhoMayEdit(), updateText(), setMessages(), setAllowedPlayerEditor(), sendBlockUpdated().
Parameters
Player playerboolean blList<FilteredText> list
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
Player player = ...;
List<FilteredText> list = ...;
instance.updateSignText(player, true, list);
net.minecraft.world.level.block.entity.SignBlockEntity#updateText(UnaryOperator<SignText>,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignBlockEntity.java:151 - Modifiers:
public - Return:
boolean
คืออะไร
อัปเดต Text
ทำงานยังไง
เรียกต่อ: getText(), setText(), apply(). คืนค่า: this.setText(unaryOperator.apply(signText), bl).
Parameters
UnaryOperator<SignText> unaryOperatorboolean bl
ตัวอย่างใช้งาน
SignBlockEntity instance = ...;
UnaryOperator<SignText> unaryOperator = ...;
boolean result = instance.updateText(unaryOperator, true);
SignText
- Full name:
net.minecraft.world.level.block.entity.SignText - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SignText.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.entity.SignText#getColor()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:73 - Modifiers:
public - Return:
DyeColor
คืออะไร
อ่านค่า Color
ทำงานยังไง
คืนค่า: this.color.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#getMessage(int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:81 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Message
ทำงานยังไง
เรียกต่อ: getMessages(). คืนค่า: this.getMessages(bl)[i].
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#getMessages(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:101 - Modifiers:
public - Return:
Component[]
คืออะไร
อ่านค่า Messages
ทำงานยังไง
คืนค่า: bl ? this.filteredMessages : this.messages.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#getRenderMessages(boolean,Function<Component, FormattedCharSequence>)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:105 - Modifiers:
public - Return:
FormattedCharSequence[]
คืออะไร
อ่านค่า Render Messages
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: renderMessages, renderMessagedFiltered. เรียกต่อ: apply(), getMessage(). คืนค่า: this.renderMessages.
Parameters
boolean blFunction<Component, FormattedCharSequence> function
ตัวอย่างใช้งาน
SignText instance = ...;
Function<Component, FormattedCharSequence> function = ...;
FormattedCharSequence[] result = instance.getRenderMessages(true, function);
net.minecraft.world.level.block.entity.SignText#hasAnyClickCommands(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:128 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Any Click Commands
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMessages(), isTextFilteringEnabled(), getStyle(), getClickEvent(), getAction(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player player
ตัวอย่างใช้งาน
SignText instance = ...;
Player player = ...;
boolean result = instance.hasAnyClickCommands(player);
net.minecraft.world.level.block.entity.SignText#hasGlowingText()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:65 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Glowing Text
ทำงานยังไง
คืนค่า: this.hasGlowingText.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#hasMessage(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:97 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Message
ทำงานยังไง
เรียกต่อ: stream(), getMessages(), isTextFilteringEnabled(), anyMatch(), getString(), isEmpty(). คืนค่า: Arrays.stream(this.getMessages(player.isTextFilteringEnabled())).anyMatch(component -> !component.getString().isEmpty()).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#setColor(DyeColor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:77 - Modifiers:
public - Return:
SignText
คืออะไร
กำหนดค่า Color
ทำงานยังไง
เรียกต่อ: getColor(). สร้างออบเจ็กต์: SignText. คืนค่า: dyeColor == this.getColor() ? this : new SignText(this.messages, this.filteredMessages, dyeColor, this.hasGlowingText).
Parameters
DyeColor dyeColor
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#setHasGlowingText(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:69 - Modifiers:
public - Return:
SignText
คืออะไร
กำหนดค่า Has Glowing Text
ทำงานยังไง
สร้างออบเจ็กต์: SignText. คืนค่า: bl == this.hasGlowingText ? this : new SignText(this.messages, this.filteredMessages, this.color, bl).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#setMessage(int,Component)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:85 - Modifiers:
public - Return:
SignText
คืออะไร
กำหนดค่า Message
ทำงานยังไง
คืนค่า: this.setMessage(i, component, component).
Parameters
int iComponent component
ตัวอย่างใช้งาน
SignText instance = ...;
Component component = ...;
SignText result = instance.setMessage(0, component);
net.minecraft.world.level.block.entity.SignText#setMessage(int,Component,Component)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:89 - Modifiers:
public - Return:
SignText
คืออะไร
กำหนดค่า Message
ทำงานยังไง
เรียกต่อ: copyOf(). สร้างออบเจ็กต์: SignText. คืนค่า: new SignText(components, components2, this.color, this.hasGlowingText).
Parameters
int iComponent componentComponent component2
ตัวอย่างใช้งาน
SignText instance = ...;
Component component = ...;
Component component2 = ...;
SignText result = instance.setMessage(0, component, component2);
net.minecraft.world.level.block.entity.SignText#SignText()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SignText ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: emptyMessages().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SignText#SignText(Component[],Component[],DyeColor,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SignText.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SignText ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: messages, filteredMessages, color, hasGlowingText.
Parameters
Component[] componentsComponent[] components2DyeColor dyeColorboolean bl
ตัวอย่างใช้งาน
Component[] components = ...;
Component[] components2 = ...;
DyeColor dyeColor = ...;
SignText instance = new SignText(components, components2, dyeColor, true);
SkullBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SkullBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SkullBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.SkullBlockEntity#animation(Level,BlockPos,BlockState,SkullBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:152 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ animation ตาม implementation ของ SkullBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasProperty(), getValue().
Parameters
Level levelBlockPos blockPosBlockState blockStateSkullBlockEntity skullBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SkullBlockEntity skullBlockEntity = ...;
SkullBlockEntity.animation(level, blockPos, blockState, skullBlockEntity);
net.minecraft.world.level.block.entity.SkullBlockEntity#applyImplicitComponents(BlockEntity.DataComponentInput)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:213 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Implicit Components
ทำงานยังไง
แก้ state: noteBlockSound, customName. เรียกต่อ: setOwner(), get().
Parameters
BlockEntity.DataComponentInput dataComponentInput
ตัวอย่างใช้งาน
BlockEntity.DataComponentInput dataComponentInput = ...;
@Override
protected void applyImplicitComponents(BlockEntity.DataComponentInput dataComponentInput) {
super.applyImplicitComponents(dataComponentInput);
}
net.minecraft.world.level.block.entity.SkullBlockEntity#clear()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:109 - Modifiers:
public static - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 3 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#collectImplicitComponents(DataComponentMap.Builder)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:221 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ collectImplicitComponents ตาม implementation ของ SkullBlockEntity
ทำงานยังไง
เรียกต่อ: set().
Parameters
DataComponentMap.Builder builder
ตัวอย่างใช้งาน
DataComponentMap.Builder builder = ...;
@Override
protected void collectImplicitComponents(DataComponentMap.Builder builder) {
super.collectImplicitComponents(builder);
}
net.minecraft.world.level.block.entity.SkullBlockEntity#fetchGameProfile(String)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:203 - Modifiers:
public static - Return:
CompletableFuture<Optional<GameProfile>>
คืออะไร
ดำเนินการ fetchGameProfile ตาม implementation ของ SkullBlockEntity
ทำงานยังไง
เรียกต่อ: isValidPlayerName(), getUnchecked(), completedFuture(), empty(). คืนค่า: loadingCache != null && StringUtil.isValidPlayerName(string) ? loadingCache.getUnchecked(string) : CompletableFuture.completedFuture(Optional.empty()).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#fetchGameProfile(UUID)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:208 - Modifiers:
public static - Return:
CompletableFuture<Optional<GameProfile>>
คืออะไร
ดำเนินการ fetchGameProfile ตาม implementation ของ SkullBlockEntity
ทำงานยังไง
เรียกต่อ: getUnchecked(), completedFuture(), empty(). คืนค่า: loadingCache != null ? loadingCache.getUnchecked(uUID) : CompletableFuture.completedFuture(Optional.empty()).
Parameters
UUID uUID
ตัวอย่างใช้งาน
UUID uUID = ...;
CompletableFuture<Optional<GameProfile>> result = SkullBlockEntity.fetchGameProfile(uUID);
net.minecraft.world.level.block.entity.SkullBlockEntity#getAnimation(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:161 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Animation
ทำงานยังไง
คืนค่า: this.isAnimating ? this.animationTickCount + f : this.animationTickCount.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#getNoteBlockSound()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:170 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Note Block Sound
ทำงานยังไง
คืนค่า: this.noteBlockSound.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#getOwnerProfile()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:165 - Modifiers:
public - Return:
ResolvableProfile
คืออะไร
อ่านค่า Owner Profile
ทำงานยังไง
คืนค่า: this.owner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:175 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SkullBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.SkullBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:179 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
SkullBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.SkullBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:131 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: noteBlockSound, customName. เรียกต่อ: contains(), parse(), get(), resultOrPartial(), error(), ifPresent(), tryParse(), getString().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SkullBlockEntity#removeComponentsFromTag(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:229 - Modifiers:
public - Return:
void
คืออะไร
ลบ Components From Tag
ทำงานยังไง
เรียกต่อ: remove().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
SkullBlockEntity instance = ...;
CompoundTag compoundTag = ...;
instance.removeComponentsFromTag(compoundTag);
net.minecraft.world.level.block.entity.SkullBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:115 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: put(), encodeStart(), getOrThrow(), putString(), toString(), toJson().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SkullBlockEntity#setOwner(ResolvableProfile)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:184 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Owner
ทำงานยังไง
มีส่วนที่ synchronize การทำงาน. แก้ state: owner. เรียกต่อ: updateOwnerProfile().
Parameters
ResolvableProfile resolvableProfile
ตัวอย่างใช้งาน
SkullBlockEntity instance = ...;
ResolvableProfile resolvableProfile = ...;
instance.setOwner(resolvableProfile);
net.minecraft.world.level.block.entity.SkullBlockEntity#setup(Services,Executor)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:64 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ setup ตาม implementation ของ SkullBlockEntity
ทำงานยังไง
เรียกต่อ: newBuilder(), expireAfterAccess(), ofMinutes(), maximumSize(), build(), load(), fetchProfileByName(), fetchProfileById(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Services servicesExecutor executor
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SkullBlockEntity#SkullBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SkullBlockEntity.java:60 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkullBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SkullBlockEntity instance = new SkullBlockEntity(blockPos, blockState);
SmokerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SmokerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SmokerBlockEntity.java - Type:
class - Modifiers:
public - Extends:
AbstractFurnaceBlockEntity
net.minecraft.world.level.block.entity.SmokerBlockEntity#createMenu(int,Inventory)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SmokerBlockEntity.java:27 - Modifiers:
protected - Return:
AbstractContainerMenu
คืออะไร
สร้าง Menu
ทำงานยังไง
สร้างออบเจ็กต์: SmokerMenu. คืนค่า: new SmokerMenu(i, inventory, this, this.dataAccess).
Parameters
int iInventory inventory
ตัวอย่างใช้งาน
Inventory inventory = ...;
@Override
protected AbstractContainerMenu createMenu(int i, Inventory inventory) {
return super.createMenu(i, inventory);
}
net.minecraft.world.level.block.entity.SmokerBlockEntity#getBurnDuration(FuelValues,ItemStack)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SmokerBlockEntity.java:22 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Burn Duration
ทำงานยังไง
คืนค่า: super.getBurnDuration(fuelValues, itemStack) / 2.
Parameters
FuelValues fuelValuesItemStack itemStack
ตัวอย่างใช้งาน
FuelValues fuelValues = ...;
ItemStack itemStack = ...;
@Override
protected int getBurnDuration(FuelValues fuelValues, ItemStack itemStack) {
return super.getBurnDuration(fuelValues, itemStack);
}
net.minecraft.world.level.block.entity.SmokerBlockEntity#getDefaultName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SmokerBlockEntity.java:17 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Default Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("container.smoker").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SmokerBlockEntity#SmokerBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SmokerBlockEntity.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SmokerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SmokerBlockEntity instance = new SmokerBlockEntity(blockPos, blockState);
SpawnerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.SpawnerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/SpawnerBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Spawner
net.minecraft.world.level.block.entity.SpawnerBlockEntity#clientTick(Level,BlockPos,BlockState,SpawnerBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:51 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ clientTick ตาม implementation ของ SpawnerBlockEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Level levelBlockPos blockPosBlockState blockStateSpawnerBlockEntity spawnerBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SpawnerBlockEntity spawnerBlockEntity = ...;
SpawnerBlockEntity.clientTick(level, blockPos, blockState, spawnerBlockEntity);
net.minecraft.world.level.block.entity.SpawnerBlockEntity#getSpawner()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:81 - Modifiers:
public - Return:
BaseSpawner
คืออะไร
อ่านค่า Spawner
ทำงานยังไง
คืนค่า: this.spawner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.SpawnerBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:59 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SpawnerBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.SpawnerBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:63 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(), remove(). คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
SpawnerBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.SpawnerBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:39 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
เรียกต่อ: load().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SpawnerBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:45 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: save().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.SpawnerBlockEntity#serverTick(Level,BlockPos,BlockState,SpawnerBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:55 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ serverTick ตาม implementation ของ SpawnerBlockEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Level levelBlockPos blockPosBlockState blockStateSpawnerBlockEntity spawnerBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
SpawnerBlockEntity spawnerBlockEntity = ...;
SpawnerBlockEntity.serverTick(level, blockPos, blockState, spawnerBlockEntity);
net.minecraft.world.level.block.entity.SpawnerBlockEntity#setEntityId(EntityType<?>,RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:75 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Entity Id
ทำงานยังไง
เรียกต่อ: setChanged().
Parameters
EntityType<?> entityTypeRandomSource randomSource
ตัวอย่างใช้งาน
SpawnerBlockEntity instance = ...;
EntityType<?> entityType = ...;
RandomSource randomSource = ...;
instance.setEntityId(entityType, randomSource);
net.minecraft.world.level.block.entity.SpawnerBlockEntity#SpawnerBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpawnerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
SpawnerBlockEntity instance = new SpawnerBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.SpawnerBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/SpawnerBlockEntity.java:70 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ SpawnerBlockEntity
ทำงานยังไง
เรียกต่อ: onEventTriggered(). คืนค่า: this.spawner.onEventTriggered(this.level, i) ? true : super.triggerEvent(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
StructureBlockEntity
- Full name:
net.minecraft.world.level.block.entity.StructureBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/StructureBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.StructureBlockEntity#createdBy(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:177 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ createdBy ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
แก้ state: author. เรียกต่อ: getName(), getString().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
LivingEntity livingEntity = ...;
instance.createdBy(livingEntity);
net.minecraft.world.level.block.entity.StructureBlockEntity#createRandom(long)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:350 - Modifiers:
public static - Return:
RandomSource
คืออะไร
สร้าง Random
ทำงานยังไง
เรียกต่อ: create(), getMillis(). คืนค่า: l == 0L ? RandomSource.create(Util.getMillis()) : RandomSource.create(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#detectSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:257 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ detectSize ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: structurePos, structureSize. เรียกต่อ: getBlockPos(), getX(), getMinY(), getZ(), getMaxY(), getRelatedCorners(), calculateEnclosingBoundingBox(), filter(). สร้างออบเจ็กต์: BlockPos, Vec3i. มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getIntegrity()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:241 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Integrity
ทำงานยังไง
คืนค่า: this.integrity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getMetaData()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:213 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Meta Data
ทำงานยังไง
คืนค่า: this.metaData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getMirror()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:197 - Modifiers:
public - Return:
Mirror
คืออะไร
อ่านค่า Mirror
ทำงานยังไง
คืนค่า: this.mirror.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getMode()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:221 - Modifiers:
public - Return:
StructureMode
คืออะไร
อ่านค่า Mode
ทำงานยังไง
คืนค่า: this.mode.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getRotation()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:205 - Modifiers:
public - Return:
Rotation
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
คืนค่า: this.rotation.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getSeed()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:249 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Seed
ทำงานยังไง
คืนค่า: this.seed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getShowAir()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:444 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า Show Air
ทำงานยังไง
คืนค่า: this.showAir.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getShowBoundingBox()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:452 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า Show Bounding Box
ทำงานยังไง
คืนค่า: this.showBoundingBox.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getStructureName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:161 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Structure Name
ทำงานยังไง
แก้ state: structureName. เรียกต่อ: toString(). คืนค่า: this.structureName == null ? "" : this.structureName.toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getStructurePos()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:181 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Structure Pos
ทำงานยังไง
คืนค่า: this.structurePos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getStructureSize()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:189 - Modifiers:
public - Return:
Vec3i
คืออะไร
อ่านค่า Structure Size
ทำงานยังไง
คืนค่า: this.structureSize.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:140 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.StructureBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:144 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.StructureBlockEntity#hasStructureName()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:165 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Structure Name
ทำงานยังไง
คืนค่า: this.structureName != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#isIgnoreEntities()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:233 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignore Entities
ทำงานยังไง
คืนค่า: this.ignoreEntities.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#isPowered()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:436 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Powered
ทำงานยังไง
คืนค่า: this.powered.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#isStructureLoadable()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:421 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Structure Loadable
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: mode. เรียกต่อ: getStructureManager(), get(), isPresent(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:83 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: author, metaData, structurePos, structureSize, rotation, mirror. เรียกต่อ: setStructureName(), getString(), clamp(), getInt(), valueOf(), getBoolean(), contains(), getFloat(). สร้างออบเจ็กต์: BlockPos, Vec3i.
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.StructureBlockEntity#loadStructureInfo(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:371 - Modifiers:
public - Return:
boolean
คืออะไร
โหลด Structure Info
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getStructureTemplate(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
ServerLevel serverLevel = ...;
boolean result = instance.loadStructureInfo(serverLevel);
net.minecraft.world.level.block.entity.StructureBlockEntity#placeStructure(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:387 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ placeStructure ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getStructureTemplate().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
ServerLevel serverLevel = ...;
instance.placeStructure(serverLevel);
net.minecraft.world.level.block.entity.StructureBlockEntity#placeStructureIfSameSize(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:354 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ placeStructureIfSameSize ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: mode. เรียกต่อ: getStructureManager(), get(), orElse(), getSize(), equals(), placeStructure(), loadStructureInfo(). มีจุด return อย่างน้อย 4 จุด.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
ServerLevel serverLevel = ...;
boolean result = instance.placeStructureIfSameSize(serverLevel);
net.minecraft.world.level.block.entity.StructureBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:60 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: putString(), getStructureName(), putInt(), getX(), getY(), getZ(), toString(), putBoolean().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.StructureBlockEntity#saveStructure()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:317 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก Structure
ทำงานยังไง
คืนค่า: this.mode != StructureMode.SAVE ? false : this.saveStructure(true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#saveStructure(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:321 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก Structure
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: structureName. เรียกต่อ: getBlockPos(), offset(), getStructureManager(), getOrCreate(), fillFromWorld(), setAuthor(), save(). มีจุด return อย่างน้อย 5 จุด.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setIgnoreEntities(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:237 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Ignore Entities
ทำงานยังไง
แก้ state: ignoreEntities.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setIntegrity(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:245 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Integrity
ทำงานยังไง
แก้ state: integrity.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setMetaData(String)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:217 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Meta Data
ทำงานยังไง
แก้ state: metaData.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setMirror(Mirror)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:201 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Mirror
ทำงานยังไง
แก้ state: mirror.
Parameters
Mirror mirror
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setMode(StructureMode)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:225 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Mode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: mode. เรียกต่อ: getBlockState(), getBlockPos(), is(), setBlock(), setValue().
Parameters
StructureMode structureMode
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
StructureMode structureMode = ...;
instance.setMode(structureMode);
net.minecraft.world.level.block.entity.StructureBlockEntity#setPowered(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:440 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Powered
ทำงานยังไง
แก้ state: powered.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setRotation(Rotation)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:209 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Rotation
ทำงานยังไง
แก้ state: rotation.
Parameters
Rotation rotation
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setSeed(long)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:253 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Seed
ทำงานยังไง
แก้ state: seed.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setShowAir(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:448 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Show Air
ทำงานยังไง
แก้ state: showAir.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setShowBoundingBox(boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:456 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Show Bounding Box
ทำงานยังไง
แก้ state: showBoundingBox.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setStructureName(ResourceLocation)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:173 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Structure Name
ทำงานยังไง
แก้ state: structureName.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
StructureBlockEntity instance = ...;
ResourceLocation resourceLocation = ...;
instance.setStructureName(resourceLocation);
net.minecraft.world.level.block.entity.StructureBlockEntity#setStructureName(String)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:169 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Structure Name
ทำงานยังไง
เรียกต่อ: isNullOrEmpty(), tryParse().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setStructurePos(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:185 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Structure Pos
ทำงานยังไง
แก้ state: structurePos.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#setStructureSize(Vec3i)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:193 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Structure Size
ทำงานยังไง
แก้ state: structureSize.
Parameters
Vec3i vec3i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#StructureBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:55 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StructureBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: mode. เรียกต่อ: getValue().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
StructureBlockEntity instance = new StructureBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.StructureBlockEntity#unloadStructure()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:413 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ unloadStructure ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getStructureManager(), remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.StructureBlockEntity#usedBy(Player)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/StructureBlockEntity.java:149 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ usedBy ตาม implementation ของ StructureBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canUseGameMasterBlocks(), getCommandSenderWorld(), openStructureBlock(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player player
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity
- Full name:
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java - Type:
class - Modifiers:
public - Extends:
TheEndPortalBlockEntity
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#beamAnimationTick(Level,BlockPos,BlockState,TheEndGatewayBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:66 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ beamAnimationTick ตาม implementation ของ TheEndGatewayBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isCoolingDown().
Parameters
Level levelBlockPos blockPosBlockState blockStateTheEndGatewayBlockEntity theEndGatewayBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndGatewayBlockEntity theEndGatewayBlockEntity = ...;
TheEndGatewayBlockEntity.beamAnimationTick(level, blockPos, blockState, theEndGatewayBlockEntity);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getCooldownPercent(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:100 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Cooldown Percent
ทำงานยังไง
เรียกต่อ: clamp(). คืนค่า: 1.0F - Mth.clamp((this.teleportCooldown - f) / 40.0F, 0.0F, 1.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getParticleAmount()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:258 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Particle Amount
ทำงานยังไง
มีการวนลูป. เรียกต่อ: values(), shouldRenderFace(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getPortalPosition(ServerLevel,BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:131 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Portal Position
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: exitPortal. เรียกต่อ: dimension(), findOrCreateValidTeleportPos(), above(), debug(), spawnGatewayPortal(), knownExit(), setExitPosition(), findExitPosition(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelBlockPos blockPos
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
Vec3 result = instance.getPortalPosition(serverLevel, blockPos);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getSpawnPercent(float)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:96 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Spawn Percent
ทำงานยังไง
เรียกต่อ: clamp(). คืนค่า: Mth.clamp(((float)this.age + f) / 200.0F, 0.0F, 1.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:104 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:108 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: saveCustomOnly(). คืนค่า: this.saveCustomOnly(provider).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#isCoolingDown()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:92 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Cooling Down
ทำงานยังไง
คืนค่า: this.teleportCooldown > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#isSpawning()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:88 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spawning
ทำงานยังไง
คืนค่า: this.age < 200L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:58 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
แก้ state: age, exitPortal, exactTeleport. เรียกต่อ: getLong(), readBlockPos(), filter(), ifPresent(), getBoolean().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#portalTick(Level,BlockPos,BlockState,TheEndGatewayBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:73 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ portalTick ตาม implementation ของ TheEndGatewayBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpawning(), isCoolingDown(), triggerCooldown(), setChanged().
Parameters
Level levelBlockPos blockPosBlockState blockStateTheEndGatewayBlockEntity theEndGatewayBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndGatewayBlockEntity theEndGatewayBlockEntity = ...;
TheEndGatewayBlockEntity.portalTick(level, blockPos, blockState, theEndGatewayBlockEntity);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:45 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putLong(), put(), writeBlockPos(), putBoolean().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#setExitPosition(BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:268 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Exit Position
ทำงานยังไง
แก้ state: exactTeleport, exitPortal. เรียกต่อ: setChanged().
Parameters
BlockPos blockPosboolean bl
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity instance = ...;
BlockPos blockPos = ...;
instance.setExitPosition(blockPos, true);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#shouldRenderFace(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:253 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render Face
ทำงานยังไง
เรียกต่อ: getBlockState(), getBlockPos(), relative(). คืนค่า: Block.shouldRenderFace(this.getBlockState(), this.level.getBlockState(this.getBlockPos().relative(direction)), direction).
Parameters
Direction direction
ตัวอย่างใช้งาน
TheEndGatewayBlockEntity instance = ...;
Direction direction = ...;
boolean result = instance.shouldRenderFace(direction);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#TheEndGatewayBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:41 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TheEndGatewayBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndGatewayBlockEntity instance = new TheEndGatewayBlockEntity(blockPos, blockState);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#triggerCooldown(Level,BlockPos,BlockState,TheEndGatewayBlockEntity)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:113 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ triggerCooldown ตาม implementation ของ TheEndGatewayBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: blockEvent(), getBlock(), setChanged().
Parameters
Level levelBlockPos blockPosBlockState blockStateTheEndGatewayBlockEntity theEndGatewayBlockEntity
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndGatewayBlockEntity theEndGatewayBlockEntity = ...;
TheEndGatewayBlockEntity.triggerCooldown(level, blockPos, blockState, theEndGatewayBlockEntity);
net.minecraft.world.level.block.entity.TheEndGatewayBlockEntity#triggerEvent(int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java:121 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ triggerEvent ตาม implementation ของ TheEndGatewayBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: teleportCooldown. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
TheEndPortalBlockEntity
- Full name:
net.minecraft.world.level.block.entity.TheEndPortalBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/TheEndPortalBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity
net.minecraft.world.level.block.entity.TheEndPortalBlockEntity#shouldRenderFace(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndPortalBlockEntity.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render Face
ทำงานยังไง
เรียกต่อ: getAxis(). คืนค่า: direction.getAxis() == Direction.Axis.Y.
Parameters
Direction direction
ตัวอย่างใช้งาน
TheEndPortalBlockEntity instance = ...;
Direction direction = ...;
boolean result = instance.shouldRenderFace(direction);
net.minecraft.world.level.block.entity.TheEndPortalBlockEntity#TheEndPortalBlockEntity(BlockEntityType<?>,BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndPortalBlockEntity.java:8 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TheEndPortalBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockEntityType<?> blockEntityTypeBlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockEntityType<?> blockEntityType = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndPortalBlockEntity instance = new TheEndPortalBlockEntity(blockEntityType, blockPos, blockState);
net.minecraft.world.level.block.entity.TheEndPortalBlockEntity#TheEndPortalBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TheEndPortalBlockEntity.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TheEndPortalBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
TheEndPortalBlockEntity instance = new TheEndPortalBlockEntity(blockPos, blockState);
TickingBlockEntity
- Full name:
net.minecraft.world.level.block.entity.TickingBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/TickingBlockEntity.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.block.entity.TickingBlockEntity#getPos()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TickingBlockEntity.java:10 - Modifiers: ``
- Return:
BlockPos
คืออะไร
อ่านค่า Pos
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TickingBlockEntity#getType()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TickingBlockEntity.java:12 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TickingBlockEntity#isRemoved()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TickingBlockEntity.java:8 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Removed
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TickingBlockEntity#tick()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TickingBlockEntity.java:6 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TrappedChestBlockEntity
- Full name:
net.minecraft.world.level.block.entity.TrappedChestBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/TrappedChestBlockEntity.java - Type:
class - Modifiers:
public - Extends:
ChestBlockEntity
net.minecraft.world.level.block.entity.TrappedChestBlockEntity#signalOpenCount(Level,BlockPos,BlockState,int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrappedChestBlockEntity.java:17 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ signalOpenCount ตาม implementation ของ TrappedChestBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: initialOrientation(), getValue(), getOpposite(), getBlock(), updateNeighborsAt(), below().
Parameters
Level levelBlockPos blockPosBlockState blockStateint iint j
ตัวอย่างใช้งาน
Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void signalOpenCount(Level level, BlockPos blockPos, BlockState blockState, int i, int j) {
super.signalOpenCount(level, blockPos, blockState, i, j);
}
net.minecraft.world.level.block.entity.TrappedChestBlockEntity#TrappedChestBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrappedChestBlockEntity.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrappedChestBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
TrappedChestBlockEntity instance = new TrappedChestBlockEntity(blockPos, blockState);
TrialSpawnerBlockEntity
- Full name:
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity - Package:
net.minecraft.world.level.block.entity - Source:
common—net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java - Type:
class - Modifiers:
public - Extends:
BlockEntity - Implements:
Spawner,TrialSpawner.StateAccessor
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#getState()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:79 - Modifiers:
public - Return:
TrialSpawnerState
คืออะไร
อ่านค่า State
ทำงานยังไง
เรียกต่อ: getBlockState(), hasProperty(), getValue().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#getTrialSpawner()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:75 - Modifiers:
public - Return:
TrialSpawner
คืออะไร
อ่านค่า Trial Spawner
ทำงานยังไง
คืนค่า: this.trialSpawner.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#getUpdatePacket()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:56 - Modifiers:
public - Return:
ClientboundBlockEntityDataPacket
คืออะไร
อ่านค่า Update Packet
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: ClientboundBlockEntityDataPacket.create(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TrialSpawnerBlockEntity instance = ...;
ClientboundBlockEntityDataPacket result = instance.getUpdatePacket();
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#getUpdateTag(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:60 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Update Tag
ทำงานยังไง
เรียกต่อ: getData(), getBlockState(), getValue(). คืนค่า: this.trialSpawner.getData().getUpdateTag(this.getBlockState().getValue(TrialSpawnerBlock.STATE)).
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
TrialSpawnerBlockEntity instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.getUpdateTag(provider);
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#loadAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:33 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Additional
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: trialSpawner. เรียกต่อ: codec(), parse(), createSerializationContext(), resultOrPartial(), ifPresent(), markUpdated().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.loadAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#markUpdated()
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:92 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markUpdated ตาม implementation ของ TrialSpawnerBlockEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setChanged(), sendBlockUpdated(), getBlockState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#saveAdditional(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:46 - Modifiers:
protected - Return:
void
คืออะไร
บันทึก Additional
ทำงานยังไง
เรียกต่อ: codec(), encodeStart(), createSerializationContext(), ifSuccess(), merge(), ifError(), warn(), message().
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void saveAdditional(CompoundTag compoundTag, HolderLookup.Provider provider) {
super.saveAdditional(compoundTag, provider);
}
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#setEntityId(EntityType<?>,RandomSource)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:65 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Entity Id
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: level. เรียกต่อ: logAndPauseIfInIde(), overrideEntityToSpawn(), setChanged().
Parameters
EntityType<?> entityTypeRandomSource randomSource
ตัวอย่างใช้งาน
TrialSpawnerBlockEntity instance = ...;
EntityType<?> entityType = ...;
RandomSource randomSource = ...;
instance.setEntityId(entityType, randomSource);
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#setState(Level,TrialSpawnerState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:86 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า State
ทำงานยังไง
เรียกต่อ: setChanged(), setBlockAndUpdate(), getBlockState(), setValue().
Parameters
Level levelTrialSpawnerState trialSpawnerState
ตัวอย่างใช้งาน
TrialSpawnerBlockEntity instance = ...;
Level level = ...;
TrialSpawnerState trialSpawnerState = ...;
instance.setState(level, trialSpawnerState);
net.minecraft.world.level.block.entity.TrialSpawnerBlockEntity#TrialSpawnerBlockEntity(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/block/entity/TrialSpawnerBlockEntity.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrialSpawnerBlockEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: trialSpawner. สร้างออบเจ็กต์: TrialSpawner.
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
TrialSpawnerBlockEntity instance = new TrialSpawnerBlockEntity(blockPos, blockState);