This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-28 20:18:22 +00:00
|
|
|
package com.thebrokenrail.scriptcraft.api.bridge;
|
|
|
|
|
|
|
|
import com.thebrokenrail.scriptcraft.core.ScriptCraftCore;
|
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
|
|
|
|
|
|
class PlayerEntityBridges {
|
|
|
|
static void register() {
|
|
|
|
ScriptCraftCore.addBridge("PlayerEntity.getInventory", args -> ((PlayerEntity) args[0]).inventory);
|
2020-06-02 17:24:32 +00:00
|
|
|
ScriptCraftCore.addBridge("PlayerEntity.isValid", args -> args[0] instanceof PlayerEntity);
|
2020-04-28 20:18:22 +00:00
|
|
|
}
|
|
|
|
}
|