java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
com.codinglitch.simpleradio.core.registry.items.SpeakerItem
All Implemented Interfaces:
Auricular, Speaking, Alterable, net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class SpeakerItem extends net.minecraft.world.item.BlockItem implements Speaking, Alterable
  • Nested Class Summary

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

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    net.fabricmc.fabric.api.item.v1.FabricItem.Settings
  • Field Summary

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

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpeakerItem(net.minecraft.world.item.Item.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.minecraft.world.InteractionResult
    place(net.minecraft.world.item.context.BlockPlaceContext context)
     

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

    appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getDescriptionId, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOn

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, toString, use, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.codinglitch.simpleradio.core.central.Alterable

    canAcceptUpgrade

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

    allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith, getRecipeRemainder

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

    isEnabled

    Methods inherited from interface com.codinglitch.simpleradio.central.Speaking

    setupSpeaker, startSpeaking, startSpeaking, stopSpeaking
  • Constructor Details

    • SpeakerItem

      public SpeakerItem(net.minecraft.world.item.Item.Properties settings)
  • Method Details

    • place

      public net.minecraft.world.InteractionResult place(net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      place in class net.minecraft.world.item.BlockItem
    • canAcceptUpgrade

      public boolean canAcceptUpgrade(Module upgrade)
      Specified by:
      canAcceptUpgrade in interface Alterable