Class EntryConsumeManager
java.lang.Object
me.hsgamer.topper.spigot.plugin.manager.EntryConsumeManager
- All Implemented Interfaces:
io.github.projectunified.minelib.plugin.base.Loadable
public class EntryConsumeManager
extends Object
implements io.github.projectunified.minelib.plugin.base.Loadable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsumer
(String group, String holder, BiConsumer<UUID, Double> consumer) addConsumer
(Consumer<EntryConsumeManager.Context> consumer) addProvider
(String group, BiFunction<String, UUID, Optional<Double>> provider) void
consume
(EntryConsumeManager.Context context) void
disable()
void
enable()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.minelib.plugin.base.Loadable
load
-
Constructor Details
-
EntryConsumeManager
-
-
Method Details
-
addConsumer
-
addConsumer
-
addProvider
-
getValue
-
consume
-
enable
public void enable()- Specified by:
enable
in interfaceio.github.projectunified.minelib.plugin.base.Loadable
-
disable
public void disable()- Specified by:
disable
in interfaceio.github.projectunified.minelib.plugin.base.Loadable
-