This commit is contained in:
gamma-delta 2022-06-16 16:05:09 -05:00
parent b9f41abb5c
commit f847238ecb
4 changed files with 8 additions and 8 deletions

View file

@ -42,9 +42,9 @@ public class HexCardinalComponents implements EntityComponentInitializer, ItemCo
public static final ComponentKey<CCColorizer> COLORIZER = ComponentRegistry.getOrCreate(modLoc("colorizer"),
CCColorizer.class);
public static final ComponentKey<CCIotaHolder> DATA_HOLDER = ComponentRegistry.getOrCreate(modLoc("data_holder"),
public static final ComponentKey<CCIotaHolder> IOTA_HOLDER = ComponentRegistry.getOrCreate(modLoc("iota_holder"),
CCIotaHolder.class);
public static final ComponentKey<CCMediaHolder> MEDIA_HOLDER = ComponentRegistry.getOrCreate(modLoc("mana_holder"),
public static final ComponentKey<CCMediaHolder> MEDIA_HOLDER = ComponentRegistry.getOrCreate(modLoc("media_holder"),
CCMediaHolder.class);
public static final ComponentKey<CCHexHolder> HEX_HOLDER = ComponentRegistry.getOrCreate(modLoc("hex_holder"),
CCHexHolder.class);
@ -64,10 +64,10 @@ public class HexCardinalComponents implements EntityComponentInitializer, ItemCo
public void registerItemComponentFactories(ItemComponentFactoryRegistry registry) {
registry.register(i -> i instanceof ColorizerItem, COLORIZER, CCColorizer.ItemBased::new);
registry.register(i -> i instanceof IotaHolderItem, DATA_HOLDER, CCIotaHolder.ItemBased::new);
registry.register(i -> i instanceof IotaHolderItem, IOTA_HOLDER, CCIotaHolder.ItemBased::new);
// oh havoc, you think you're so funny
// the worst part is you're /right/
registry.register(Items.PUMPKIN_PIE, DATA_HOLDER, stack ->
registry.register(Items.PUMPKIN_PIE, IOTA_HOLDER, stack ->
new CCIotaHolder.Static(stack, s -> new DoubleIota(Math.PI * s.getCount())));
registry.register(i -> i instanceof MediaHolderItem, MEDIA_HOLDER, CCMediaHolder.ItemBased::new);

View file

@ -14,7 +14,7 @@ import java.util.function.Function;
public abstract class CCIotaHolder extends ItemComponent implements ADIotaHolder {
public CCIotaHolder(ItemStack stack) {
super(stack, HexCardinalComponents.DATA_HOLDER);
super(stack, HexCardinalComponents.IOTA_HOLDER);
}
public static class ItemBased extends CCIotaHolder {

View file

@ -221,7 +221,7 @@ public class FabricXplatImpl implements IXplatAbstractions {
@Override
public @Nullable
ADIotaHolder findDataHolder(ItemStack stack) {
var cc = HexCardinalComponents.DATA_HOLDER.maybeGet(stack);
var cc = HexCardinalComponents.IOTA_HOLDER.maybeGet(stack);
return cc.orElse(null);
}

View file

@ -67,8 +67,8 @@
"hexcasting:patterns",
"hexcasting:colorizer",
"hexcasting:data_holder",
"hexcasting:mana_holder",
"hexcasting:iota_holder",
"hexcasting:media_holder",
"hexcasting:hex_holder"
]
}