public class FishBucketItem extends BucketItem
Item.Properties
Modifier and Type | Field and Description |
---|---|
private EntityType<?> |
fishType |
private java.util.function.Supplier<? extends EntityType<?>> |
fishTypeSupplier |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
FishBucketItem(EntityType<?> fishTypeIn,
Fluid p_i49022_2_,
Item.Properties builder)
Deprecated.
|
FishBucketItem(java.util.function.Supplier<? extends EntityType<?>> fishTypeIn,
java.util.function.Supplier<? extends Fluid> p_i49022_2_,
Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack stack,
World worldIn,
java.util.List<ITextComponent> tooltip,
ITooltipFlag flagIn) |
protected EntityType<?> |
getFishType() |
void |
onLiquidPlaced(World worldIn,
ItemStack p_203792_2_,
BlockPos pos) |
private void |
placeFish(World worldIn,
ItemStack p_205357_2_,
BlockPos pos) |
protected void |
playEmptySound(PlayerEntity player,
IWorld worldIn,
BlockPos pos) |
emptyBucket, getFluid, initCapabilities, onItemRightClick, tryPlaceContainedLiquid
addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
private final EntityType<?> fishType
private final java.util.function.Supplier<? extends EntityType<?>> fishTypeSupplier
@Deprecated public FishBucketItem(EntityType<?> fishTypeIn, Fluid p_i49022_2_, Item.Properties builder)
public FishBucketItem(java.util.function.Supplier<? extends EntityType<?>> fishTypeIn, java.util.function.Supplier<? extends Fluid> p_i49022_2_, Item.Properties builder)
public void onLiquidPlaced(World worldIn, ItemStack p_203792_2_, BlockPos pos)
onLiquidPlaced
in class BucketItem
protected void playEmptySound(@Nullable PlayerEntity player, IWorld worldIn, BlockPos pos)
playEmptySound
in class BucketItem
public void addInformation(ItemStack stack, @Nullable World worldIn, java.util.List<ITextComponent> tooltip, ITooltipFlag flagIn)
addInformation
in class Item
protected EntityType<?> getFishType()