Class ItemsAdderPackCompressedEvent
java.lang.Object
org.bukkit.event.Event
dev.lone.itemsadder.api.Events.ItemsAdderPackCompressedEvent
Async event called before ItemsAdder writes the final resourcepack zip.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic classNested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCreates pack compressed event.Creates pack compressed event. -
Method Summary
Modifier and TypeMethodDescriptionGets mutable zip entries, keyed by their path inside the pack zip.@Nullable ItemsAdderPackCompressedEvent.PackEntryGets an entry by path.static HandlerList@NotNull HandlerListvoidremoveEntry(String path) Removes an entry.voidAdds or replaces an entry.voidsetTextEntry(String path, String text) Adds or replaces a UTF-8 text entry.Methods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ItemsAdderPackCompressedEvent
public ItemsAdderPackCompressedEvent()Creates pack compressed event. -
ItemsAdderPackCompressedEvent
Creates pack compressed event.- Parameters:
entries- mutable zip entries.
-
-
Method Details
-
getEntries
Gets mutable zip entries, keyed by their path inside the pack zip.- Returns:
- mutable zip entries.
-
getEntry
Gets an entry by path.- Parameters:
path- path inside the pack zip.- Returns:
- entry, if any.
-
setEntry
Adds or replaces an entry.- Parameters:
path- path inside the pack zip.bytes- entry contents.
-
setTextEntry
-
removeEntry
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-