Class UFabricSpawnEggItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.SpawnEggItem
info.u_team.u_team_core.item.UFabricSpawnEggItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class UFabricSpawnEggItem extends net.minecraft.world.item.SpawnEggItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields inherited from class net.minecraft.world.item.SpawnEggItem

    BY_ID

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    UFabricSpawnEggItem(net.minecraft.world.item.Item.Properties properties, Supplier<? extends net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Mob>> entityType, int backgroundColor, int highlightColor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.dispenser.DispenseItemBehavior
     
    getEgg(net.minecraft.world.entity.EntityType<?> type)
     
    static Iterable<net.minecraft.world.item.SpawnEggItem>
     
    net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Mob>
     
    net.minecraft.world.entity.EntityType<?>
    getType(net.minecraft.nbt.CompoundTag nbt)
     
    net.minecraft.world.flag.FeatureFlagSet
     

    Methods inherited from class net.minecraft.world.item.SpawnEggItem

    byId, eggs, getColor, spawnOffspringFromSpawnEgg, spawnsEntity, use, useOn

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled
  • Constructor Details

    • UFabricSpawnEggItem

      public UFabricSpawnEggItem(net.minecraft.world.item.Item.Properties properties, Supplier<? extends net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Mob>> entityType, int backgroundColor, int highlightColor)
  • Method Details

    • getEntityType

      public net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Mob> getEntityType()
    • createDispenserItemBehavior

      public net.minecraft.core.dispenser.DispenseItemBehavior createDispenserItemBehavior()
    • getEgg

      public static UFabricSpawnEggItem getEgg(net.minecraft.world.entity.EntityType<?> type)
    • getEggs

      public static Iterable<net.minecraft.world.item.SpawnEggItem> getEggs()
    • getType

      public net.minecraft.world.entity.EntityType<?> getType(net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      getType in class net.minecraft.world.item.SpawnEggItem
    • requiredFeatures

      public net.minecraft.world.flag.FeatureFlagSet requiredFeatures()
      Specified by:
      requiredFeatures in interface net.minecraft.world.flag.FeatureElement
      Overrides:
      requiredFeatures in class net.minecraft.world.item.SpawnEggItem