Class GameRulesMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.GameRulesMixin
- All Implemented Interfaces:
GameRulesKJS
@RemapPrefixForJS("kjs$")
public abstract class GameRulesMixin
extends Object
implements GameRulesKJS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.core.GameRulesKJS
kjs$getBoolean, kjs$getInt, kjs$getString
-
Constructor Details
-
GameRulesMixin
public GameRulesMixin()
-
-
Method Details
-
getRule
public abstract <T extends net.minecraft.world.level.GameRules.Value<T>> T getRule(net.minecraft.world.level.GameRules.Key<T> key) -
kjs$get
- Specified by:
kjs$getin interfaceGameRulesKJS
-
kjs$set
- Specified by:
kjs$setin interfaceGameRulesKJS
-