remove some comments
This commit is contained in:
1 parent
46d8e8dd33
commit
382a13728a
1 file changed
-21
@@ -524,15 +524,6 @@ public class EntityValue extends Value
|
|||||||
put("age", (e, a) -> new NumericValue(e.tickCount));
|
put("age", (e, a) -> new NumericValue(e.tickCount));
|
||||||
put("breeding_age", (e, a) -> e instanceof AgeableMob?new NumericValue(((AgeableMob) e).getAge()):Value.NULL);
|
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);
|
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)->{
|
put("skull_dangerous",(e,a)->{
|
||||||
if (e instanceof WitherSkull w){
|
if (e instanceof WitherSkull w){
|
||||||
return BooleanValue.of(w.isDangerous());
|
return BooleanValue.of(w.isDangerous());
|
||||||
@@ -1697,17 +1688,6 @@ 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);
|
|
||||||
item=item.copy();
|
|
||||||
pl.containerMenu.setCarried(item);
|
|
||||||
pl.containerMenu.broadcastFullState();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
put("skull_dangerous",(e,v)->{
|
put("skull_dangerous",(e,v)->{
|
||||||
if (e instanceof WitherSkull w){
|
if (e instanceof WitherSkull w){
|
||||||
w.setDangerous(v.getBoolean());
|
w.setDangerous(v.getBoolean());
|
||||||
@@ -1728,7 +1708,6 @@ public class EntityValue extends Value
|
|||||||
iteme.setItem(item);
|
iteme.setItem(item);
|
||||||
});
|
});
|
||||||
// "dimension" []
|
// "dimension" []
|
||||||
// "item" []
|
|
||||||
// "count", []
|
// "count", []
|
||||||
// "effect_"name []
|
// "effect_"name []
|
||||||
}};
|
}};
|
||||||
|
|||||||
Reference in new issue
Block a user