This commit is contained in:
ch-yx authored and gnembon committed 2022-08-28 18:59:11 +02:00
1 parent aacc1dcb3e
commit a690e477ae
3 files changed
+40

No files matched your search

@@ -525,12 +525,14 @@ public class EntityValue extends Value
put("breeding_age", (e, a) -> e instanceof AgeableMob?new NumericValue(((AgeableMob) e).getAge()):Value.NULL);
put("despawn_timer", (e, a) -> e instanceof LivingEntity?new NumericValue(((LivingEntity) e).getNoActionTime()):Value.NULL);
//getter of ironman flower, blueness of skull, carryingitem
/*
put("carrying_item",(e,a)->{
if (e instanceof ServerPlayer){
return ValueConversions.of(((ServerPlayer) e).containerMenu.getCarried());
}
return Value.NULL;
});
*/
put("skull_dangerous",(e,a)->{
if (e instanceof WitherSkull w){
return BooleanValue.of(w.isDangerous());
@@ -1696,6 +1698,7 @@ public class EntityValue extends Value
});
//setter of ironman flower, blueness of skull, carryingitem
/*
put("carrying_item",(e,v)->{
if (e instanceof ServerPlayer pl){
ItemStack item=getItemStackFromValue(v);
@@ -1707,6 +1710,7 @@ public class EntityValue extends Value
});
*/
put("skull_dangerous",(e,v)->{
if (e instanceof WitherSkull w){
w.setDangerous(v.getBoolean());