Package org.geysermc.geyser.util
Interface GeyserIntegratedPackUtil
- All Known Implementing Classes:
GeyserDefineResourcePacksEventImpl,SessionLoadResourcePacksEventImpl
public interface GeyserIntegratedPackUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pathstatic final UUIDstatic final AtomicReference<org.geysermc.geyser.api.pack.ResourcePackManifest.Version> static final UUIDstatic final AtomicBooleanstatic final Path -
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandleDuplicateIntegratedPack(org.geysermc.geyser.api.pack.ResourcePack duplicate) default voidhandleOptionalPack(org.geysermc.geyser.api.pack.ResourcePack pack) booleandefault booleandefault voidPre-processes a resource pack about to be registereddefault voidvoiddefault StringwarnMessageLocation(org.geysermc.geyser.api.pack.PackCodec codec)
-
Field Details
-
CACHE
-
PACK_PATH
-
OPTIONAL_PACK_UUID
-
INTEGRATED_PACK_UUID
-
INTEGRATED_PACK_VERSION
static final AtomicReference<org.geysermc.geyser.api.pack.ResourcePackManifest.Version> INTEGRATED_PACK_VERSION -
PACK_ENABLED
-
-
Method Details
-
registerGeyserPack
-
preProcessPack
Pre-processes a resource pack about to be registered- Parameters:
pack- the pack to check- Throws:
org.geysermc.geyser.api.pack.exception.ResourcePackException- if duplicate was discovered
-
handleDuplicateIntegratedPack
default void handleDuplicateIntegratedPack(org.geysermc.geyser.api.pack.ResourcePack duplicate) -
handleOptionalPack
default void handleOptionalPack(org.geysermc.geyser.api.pack.ResourcePack pack) -
warnMessageLocation
-
unregisterIntegratedPack
void unregisterIntegratedPack() -
integratedPackRegistered
boolean integratedPackRegistered() -
isIntegratedPackActive
default boolean isIntegratedPackActive()
-