use of org.bukkit.entity.Husk in project RoseStacker by Rosewood-Development.
the class HuskStackSettings method canStackWithInternal.
@Override
protected EntityStackComparisonResult canStackWithInternal(StackedEntity stack1, StackedEntity stack2) {
Husk husk1 = (Husk) stack1.getEntity();
Husk husk2 = (Husk) stack2.getEntity();
if (this.dontStackIfConverting && (husk1.isConverting() || husk2.isConverting()))
return EntityStackComparisonResult.CONVERTING;
return EntityStackComparisonResult.CAN_STACK;
}
Aggregations