-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
096e9bd
commit 36ddf94
Showing
6 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/us/mytheria/bloblib/entities/currency/TransientWalletOwnerManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package us.mytheria.bloblib.entities.currency; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.EventPriority; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
import us.mytheria.bloblib.entities.BlobCrudable; | ||
import us.mytheria.bloblib.managers.ManagerDirector; | ||
|
||
import java.util.function.Function; | ||
|
||
public class TransientWalletOwnerManager<T extends WalletOwner> extends WalletOwnerManager<T> { | ||
protected TransientWalletOwnerManager(ManagerDirector managerDirector, | ||
Function<BlobCrudable, BlobCrudable> newBorn, | ||
Function<BlobCrudable, T> generator, | ||
String crudableName, | ||
boolean logActivity, | ||
@Nullable Function<T, Event> joinEvent, | ||
@Nullable Function<T, Event> quitEvent, | ||
@NotNull EventPriority joinPriority, | ||
@NotNull EventPriority quitPriority) { | ||
super(managerDirector, newBorn, generator, crudableName, logActivity, joinEvent, quitEvent, | ||
joinPriority, quitPriority); | ||
} | ||
|
||
@Override | ||
public BlobCrudable read(String key) { | ||
return new BlobCrudable(key); | ||
} | ||
|
||
@Override | ||
public void update(BlobCrudable crudable) { | ||
} | ||
|
||
@Override | ||
public boolean exists(String key) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters