All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
addAttributeModifier(EntityAttribute entityAttribute,
EntityAttributeModifier modifier,
EquipmentSlot slot) |
void |
addEnchantment(Enchantment enchantment,
int level) |
void |
addHideFlag(ItemStack.TooltipSection tooltipSection) |
static void |
appendEnchantments(List<Text> tooltip,
ListTag enchantments) |
private static boolean |
areBlocksEqual(CachedBlockPosition first,
CachedBlockPosition second) |
static boolean |
areEqual(ItemStack left,
ItemStack right) |
static boolean |
areItemsEqual(ItemStack left,
ItemStack right) |
static boolean |
areItemsEqualIgnoreDamage(ItemStack left,
ItemStack right) |
static boolean |
areTagsEqual(ItemStack left,
ItemStack right) |
boolean |
canDestroy(TagManager tagManager,
CachedBlockPosition pos) |
boolean |
canPlaceOn(TagManager tagManager,
CachedBlockPosition pos) |
ItemStack |
copy() |
boolean |
damage(int amount,
Random random,
ServerPlayerEntity player) |
<T extends LivingEntity> void |
damage(int amount,
T entity,
Consumer<T> breakCallback) |
void |
decrement(int amount) |
ItemStack |
finishUsing(World world,
LivingEntity user) |
static ItemStack |
fromTag(CompoundTag tag) |
Multimap<EntityAttribute,EntityAttributeModifier> |
getAttributeModifiers(EquipmentSlot equipmentSlot) |
int |
getCooldown() |
int |
getCount() |
int |
getDamage() |
SoundEvent |
getDrinkSound() |
SoundEvent |
getEatSound() |
ListTag |
getEnchantments() |
ItemFrameEntity |
getFrame() |
private int |
getHideFlags() |
Entity |
getHolder() |
Item |
getItem() |
int |
getMaxCount() |
int |
getMaxDamage() |
int |
getMaxUseTime() |
float |
getMiningSpeedMultiplier(BlockState state) |
Text |
getName() |
CompoundTag |
getOrCreateSubTag(String key) |
CompoundTag |
getOrCreateTag() |
Rarity |
getRarity() |
int |
getRepairCost() |
CompoundTag |
getSubTag(String key) |
CompoundTag |
getTag() |
List<Text> |
getTooltip(PlayerEntity player,
TooltipContext context) |
String |
getTranslationKey() |
UseAction |
getUseAction() |
boolean |
hasCustomName() |
boolean |
hasEnchantments() |
boolean |
hasGlint() |
boolean |
hasTag() |
void |
increment(int amount) |
void |
inventoryTick(World world,
Entity entity,
int slot,
boolean selected) |
boolean |
isDamageable() |
boolean |
isDamaged() |
boolean |
isEffectiveOn(BlockState state) |
boolean |
isEmpty() |
boolean |
isEnchantable() |
private boolean |
isEqual(ItemStack stack) |
boolean |
isFood() |
boolean |
isInFrame() |
boolean |
isItemEqual(ItemStack stack) |
boolean |
isItemEqualIgnoreDamage(ItemStack stack) |
private static boolean |
isSectionHidden(int flags,
ItemStack.TooltipSection tooltipSection) |
boolean |
isStackable() |
boolean |
isUsedOnRelease() |
void |
onCraft(World world,
PlayerEntity player,
int amount) |
void |
onStoppedUsing(World world,
LivingEntity user,
int remainingUseTicks) |
private static Collection<Text> |
parseBlockTag(String tag) |
void |
postHit(LivingEntity target,
PlayerEntity attacker) |
void |
postMine(World world,
BlockState state,
BlockPos pos,
PlayerEntity miner) |
void |
putSubTag(String key,
Tag tag) |
void |
removeCustomName() |
void |
removeSubTag(String key) |
void |
setCooldown(int cooldown) |
void |
setCount(int count) |
ItemStack |
setCustomName(Text name) |
void |
setDamage(int damage) |
void |
setHolder(Entity holder) |
void |
setRepairCost(int repairCost) |
void |
setTag(CompoundTag tag) |
ItemStack |
split(int amount) |
Text |
toHoverableText() |
String |
toString() |
CompoundTag |
toTag(CompoundTag tag) |
private void |
updateEmptyState() |
void |
usageTick(World world,
LivingEntity user,
int remainingUseTicks) |
TypedActionResult<ItemStack> |
use(World world,
PlayerEntity user,
Hand hand) |
ActionResult |
useOnBlock(ItemUsageContext context) |
ActionResult |
useOnEntity(PlayerEntity user,
LivingEntity entity,
Hand hand) |