Class TagKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.server.tag.TagKubeEvent
All Implemented Interfaces:
KubeEvent
Direct Known Subclasses:
PreTagKubeEvent

public class TagKubeEvent extends Object implements KubeEvent
  • Field Details

    • TAG_EVENT_HANDLER

      public static final EventExceptionHandler TAG_EVENT_HANDLER
    • SOURCE

      public static final String SOURCE
      See Also:
    • registryKey

      public final net.minecraft.resources.ResourceKey<?> registryKey
    • vanillaRegistry

      public final net.minecraft.core.Registry<?> vanillaRegistry
    • tags

      public final Map<net.minecraft.resources.ResourceLocation,TagWrapper> tags
    • totalAdded

      public int totalAdded
    • totalRemoved

      public int totalRemoved
  • Constructor Details

    • TagKubeEvent

      public TagKubeEvent(net.minecraft.resources.ResourceKey<?> registryKey, net.minecraft.core.Registry<?> vr)
  • Method Details

    • getType

      public net.minecraft.resources.ResourceLocation getType()
    • get

      public TagWrapper get(net.minecraft.resources.ResourceLocation id)
    • createTagWrapper

      protected TagWrapper createTagWrapper(net.minecraft.resources.ResourceLocation id)
    • add

      public TagWrapper add(net.minecraft.resources.ResourceLocation tag, Object... filters)
    • remove

      public TagWrapper remove(net.minecraft.resources.ResourceLocation tag, Object... filters)
    • removeAll

      public TagWrapper removeAll(net.minecraft.resources.ResourceLocation tag)
    • removeAllTagsFrom

      public void removeAllTagsFrom(Object... ids)
    • getElementIds

      public Set<net.minecraft.resources.ResourceLocation> getElementIds()