Added a few custom paintings

This commit is contained in:
Forstride 2020-07-21 15:38:37 -04:00
parent 8f4a43af31
commit 0b1c6fc3a6
6 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,34 @@
package biomesoplenty.init;
import biomesoplenty.core.BiomesOPlenty;
import net.minecraft.entity.item.PaintingType;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.ForgeRegistries;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModPaintings
{
public static final PaintingType FIRST_WORLD = new PaintingType(32, 32);
public static final PaintingType NETHER_WASP = new PaintingType(32, 32);
public static final PaintingType PROMISED_LAND = new PaintingType(64, 32);
public static final PaintingType JADE_CLIFFS = new PaintingType(64, 64);
@SubscribeEvent
public static void registerPaintingTypes(RegistryEvent.Register<PaintingType> event)
{
registerPaintingType(FIRST_WORLD, "first_world");
registerPaintingType(NETHER_WASP, "nether_wasp");
registerPaintingType(PROMISED_LAND, "promised_land");
registerPaintingType(JADE_CLIFFS, "jade_cliffs");
}
public static PaintingType registerPaintingType(PaintingType entry, String name)
{
entry.setRegistryName(new ResourceLocation(BiomesOPlenty.MOD_ID, name));
ForgeRegistries.PAINTING_TYPES.register(entry);
return entry;
}
}

View file

@ -2,7 +2,6 @@ package biomesoplenty.init;
import biomesoplenty.api.biome.BOPBiomes; import biomesoplenty.api.biome.BOPBiomes;
import biomesoplenty.api.block.BOPBlocks; import biomesoplenty.api.block.BOPBlocks;
import biomesoplenty.common.biome.BiomeBOP;
import biomesoplenty.common.world.biome.BiomeFeatureHelper; import biomesoplenty.common.world.biome.BiomeFeatureHelper;
import biomesoplenty.common.world.gen.feature.BOPBiomeFeatures; import biomesoplenty.common.world.gen.feature.BOPBiomeFeatures;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
@ -21,7 +20,6 @@ import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig;
import net.minecraft.world.gen.placement.FrequencyConfig; import net.minecraft.world.gen.placement.FrequencyConfig;
import net.minecraft.world.gen.placement.Placement; import net.minecraft.world.gen.placement.Placement;
import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilder;
import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary;
import java.util.List; import java.util.List;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB