use of knightminer.ceramics.Registration in project Ceramics by KnightMiner.
the class JEIPlugin method registerItemSubtypes.
@Override
public void registerItemSubtypes(ISubtypeRegistration registration) {
ISubtypeInterpreter bucketInterpreter = BaseClayBucketItem::getSubtype;
registration.registerSubtypeInterpreter(Registration.CLAY_BUCKET.get(), bucketInterpreter);
registration.registerSubtypeInterpreter(Registration.CRACKED_CLAY_BUCKET.get(), bucketInterpreter);
// separate different states of crackable clay
ISubtypeInterpreter crackableClay = stack -> CrackableBlockItem.getCracks(stack) > 0 ? "cracked" : "";
registration.registerSubtypeInterpreter(Registration.TERRACOTTA_CISTERN.asItem(), crackableClay);
Registration.COLORED_CISTERN.forEach(block -> registration.registerSubtypeInterpreter(block.asItem(), crackableClay));
registration.registerSubtypeInterpreter(Registration.TERRACOTTA_FAUCET.asItem(), crackableClay);
registration.registerSubtypeInterpreter(Registration.TERRACOTTA_CHANNEL.asItem(), crackableClay);
}
Aggregations