use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Tilt method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
ItemBuilder item = ItemBuilder.getSkull(simple.brainsynder.utils.SkullType.SKELETON);
item.withName("&6Head Tilted: &e%value%");
return new ArrayList<>(Collections.singleton(item));
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class Tilt method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName("tilt", 0);
if (entityPet instanceof IEntityWolfPet) {
IEntityWolfPet var = (IEntityWolfPet) entityPet;
item.withName(item.getName().replace("%value%", String.valueOf(var.isHeadTilted())));
}
return item;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class WitherSize method getDefaultItems.
@Override
public List<ItemBuilder> getDefaultItems() {
ItemBuilder item = new ItemBuilder(Utilities.fetchMaterial("NETHER_BRICK_ITEM", "NETHER_BRICK"));
item.withName("&6Small: &e%value%");
return new ArrayList<>(Collections.singleton(item));
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class CatTilt method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder builder = type.getDataItemByName(getTargetName(), 0);
builder.withName(formatName(builder, (entity, name) -> {
name = name.replace("%value%", String.valueOf(entity.isHeadUp()));
return name;
}));
return builder;
}
use of simple.brainsynder.api.ItemBuilder in project SimplePets by brainsynder-Dev.
the class FoxColor method getItem.
@Override
public ItemBuilder getItem() {
ItemBuilder item = type.getDataItemByName(getTargetName(), 0);
if (entityPet instanceof IEntityFoxPet) {
IEntityFoxPet var = (IEntityFoxPet) entityPet;
item = type.getDataItemByName(getTargetName(), var.getFoxType().ordinal());
}
return item;
}
Aggregations