use of org.spongepowered.mod.data.ForgeFluidTankDataProcessor in project SpongeForge by SpongePowered.
the class SpongeForgeModuleRegistry method registerForgeData.
public static void registerForgeData() {
SpongePropertyRegistry propertyRegistry = SpongeImpl.getPropertyRegistry();
// Property registration
propertyRegistry.register(LightEmissionProperty.class, new ForgeLightEmissionPropertyStore());
propertyRegistry.register(MatterProperty.class, new ForgeMatterPropertyStore());
propertyRegistry.register(SolidCubeProperty.class, new ForgeSolidCubePropertyStore());
// Data registration
DataUtil.registerDualProcessor(FluidTankData.class, SpongeFluidTankData.class, ImmutableFluidTankData.class, ImmutableSpongeFluidTankData.class, new ForgeFluidTankDataProcessor());
// Value registration
// Populator types
PopulatorTypeRegistryModule populatorTypeModule = PopulatorTypeRegistryModule.getInstance();
populatorTypeModule.customTypeFunction = (type) -> new SpongePopulatorType(type.getSimpleName(), StaticMixinForgeHelper.getModIdFromClass(type));
}
Aggregations