Interface TagWritable

All Known Subinterfaces:
CommandSender, ItemMeta.Builder, ItemMetaView.Builder, ItemStack.Builder, Taggable, TagHandler
All Known Implementing Classes:
AbstractInventory, AnvilInventory, BannerMeta.Builder, BeaconInventory, BrewingStandInventory, BundleMeta.Builder, Chunk, CompassMeta.Builder, ConsoleSender, CrossbowMeta.Builder, Damage, DynamicChunk, EnchantedBookMeta.Builder, EnchantmentTableInventory, Entity, EntityCreature, EntityDamage, EntityProjectile, EntityProjectileDamage, ExperienceOrb, FireworkEffectMeta.Builder, FireworkMeta.Builder, FurnaceInventory, Instance, InstanceContainer, Inventory, ItemEntity, LeatherArmorMeta.Builder, LightingChunk, LivingEntity, MapMeta.Builder, Player, PlayerHeadMeta.Builder, PlayerInventory, PlayerProjectile, PositionalDamage, PotionMeta.Builder, ServerSender, SharedInstance, ShieldMeta.Builder, VillagerInventory, WritableBookMeta.Builder, WrittenBookMeta.Builder

public interface TagWritable
Represents an element which can write tags.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    removeTag(@NotNull Tag<?> tag)
     
    <T> void
    setTag(@NotNull Tag<T> tag, T value)
    Writes the specified type.
  • Method Details

    • setTag

      <T> void setTag(@NotNull @NotNull Tag<T> tag, @Nullable T value)
      Writes the specified type.
      Type Parameters:
      T - the tag type
      Parameters:
      tag - the tag to write
      value - the tag value, null to remove
    • removeTag

      default void removeTag(@NotNull @NotNull Tag<?> tag)