12 lines
409 B
Java
12 lines
409 B
Java
package com.thebrokenrail.scriptcraft.bridge;
|
|
|
|
import net.minecraft.entity.LivingEntity;
|
|
import net.minecraft.util.Hand;
|
|
|
|
class LivingEntityBridges {
|
|
static void register() {
|
|
Bridges.addBridge("LivingEntity.getStackInHand", args -> ((LivingEntity) args[0]).getStackInHand((Hand) args[1]));
|
|
Bridges.addBridge("LivingEntity.getHealth", args -> ((LivingEntity) args[0]).getHealth());
|
|
}
|
|
}
|