mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
Add Custom Particle Handling and Preset Handling to Trap and Hazards
This commit is contained in:
1 parent
bf3391a1a8
commit
6f9cafa141
13 files changed
+318
-79
No files matched your search
@@ -154,8 +154,8 @@ public class FieldDef {
|
||||
|
||||
public static FieldDef colorSubGui(String label, Supplier<Integer> getter, Consumer<Integer> setter) {
|
||||
return subGuiField(label,
|
||||
() -> new SubGuiColorSelector(getter.get()),
|
||||
gui -> setter.accept(((SubGuiColorSelector) gui).color & 0x00FFFFFF))
|
||||
() -> new SubGuiColorSelector(getter.get() & 0xFFFFFF),
|
||||
gui -> setter.accept((((SubGuiColorSelector) gui).color & 0x00FFFFFF) | (getter.get() & 0xFF000000)))
|
||||
.buttonLabel(() -> String.format("%06X", getter.get() & 0xFFFFFF))
|
||||
.buttonTextColor(() -> getter.get() & 0xFFFFFF);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user