mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 07:49:29 +00:00
Add redstone cache to api
This commit is contained in:
21
patches/api/0012-Add-redstone-cache-api.patch
Normal file
21
patches/api/0012-Add-redstone-cache-api.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Samsuik <kfian294ma4@gmail.com>
|
||||
Date: Tue, 11 Jun 2024 13:57:26 +0100
|
||||
Subject: [PATCH] Add redstone cache api
|
||||
|
||||
|
||||
diff --git a/src/main/java/me/samsuik/sakura/local/LocalValueKey.java b/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
||||
index 34434bf1fa8018bd79a0af8ae0f8e7ca24da6ec6..780a02fb451d5b4b98f6895b488b90c75a6507a8 100644
|
||||
--- a/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
||||
+++ b/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
||||
@@ -29,6 +29,10 @@ public record LocalValueKey<T>(NamespacedKey key, Supplier<T> defaultSupplier) {
|
||||
new NamespacedKey("sakura", "consistent-radius"), () -> false
|
||||
);
|
||||
|
||||
+ public static final LocalValueKey<Boolean> REDSTONE_CACHE = new LocalValueKey<>(
|
||||
+ new NamespacedKey("sakura", "redstone-cache"), () -> false
|
||||
+ );
|
||||
+
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
Reference in New Issue
Block a user