类 BundleContents
java.lang.Object
net.minecraft.world.item.component.BundleContents
- 所有已实现的接口:
TooltipComponent
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final org.apache.commons.lang3.math.Fraction
static final com.mojang.serialization.Codec
<BundleContents> static final BundleContents
static final int
private static final int
(专用程序包) final int
static final StreamCodec
<RegistryFriendlyByteBuf, BundleContents> (专用程序包) final org.apache.commons.lang3.math.Fraction
-
构造器概要
构造器构造器说明BundleContents
(List<ItemStack> p_334686_) BundleContents
(List<ItemStack> p_331924_, org.apache.commons.lang3.math.Fraction p_333046_, int p_368623_) -
方法概要
修饰符和类型方法说明static boolean
canItemBeInBundle
(ItemStack p_369421_) private static com.mojang.serialization.DataResult
<BundleContents> checkAndCreate
(List<ItemStack> p_361886_) private static org.apache.commons.lang3.math.Fraction
computeContentWeight
(List<ItemStack> p_336274_) boolean
getItemUnsafe
(int p_329557_) int
int
(专用程序包) static org.apache.commons.lang3.math.Fraction
int
hashCode()
boolean
boolean
isEmpty()
items()
int
size()
toString()
org.apache.commons.lang3.math.Fraction
weight()
-
字段详细资料
-
EMPTY
-
CODEC
-
STREAM_CODEC
-
BUNDLE_IN_BUNDLE_WEIGHT
private static final org.apache.commons.lang3.math.Fraction BUNDLE_IN_BUNDLE_WEIGHT -
NO_STACK_INDEX
private static final int NO_STACK_INDEX- 另请参阅:
-
NO_SELECTED_ITEM_INDEX
public static final int NO_SELECTED_ITEM_INDEX- 另请参阅:
-
items
-
weight
final org.apache.commons.lang3.math.Fraction weight -
selectedItem
final int selectedItem
-
-
构造器详细资料
-
BundleContents
-
BundleContents
-
-
方法详细资料
-
checkAndCreate
private static com.mojang.serialization.DataResult<BundleContents> checkAndCreate(List<ItemStack> p_361886_) -
computeContentWeight
-
getWeight
-
canItemBeInBundle
-
getNumberOfItemsToShow
public int getNumberOfItemsToShow() -
getItemUnsafe
-
itemCopyStream
-
items
-
itemsCopy
-
size
public int size() -
weight
public org.apache.commons.lang3.math.Fraction weight() -
isEmpty
public boolean isEmpty() -
getSelectedItem
public int getSelectedItem() -
hasSelectedItem
public boolean hasSelectedItem() -
equals
-
hashCode
public int hashCode() -
toString
-