Removed old custom SignBlockEntity type
This commit is contained in:
parent
3b7e5c0a3e
commit
9207bc8c3d
3 changed files with 1 additions and 13 deletions
|
@ -5,7 +5,6 @@ import org.betterx.bclib.api.v2.levelgen.biomes.InternalBiomeAPI;
|
||||||
import org.betterx.bclib.blocks.BaseBarrelBlock;
|
import org.betterx.bclib.blocks.BaseBarrelBlock;
|
||||||
import org.betterx.bclib.blocks.BaseChestBlock;
|
import org.betterx.bclib.blocks.BaseChestBlock;
|
||||||
import org.betterx.bclib.blocks.BaseFurnaceBlock;
|
import org.betterx.bclib.blocks.BaseFurnaceBlock;
|
||||||
import org.betterx.bclib.blocks.BaseSignBlock;
|
|
||||||
import org.betterx.bclib.client.render.BCLRenderLayer;
|
import org.betterx.bclib.client.render.BCLRenderLayer;
|
||||||
import org.betterx.bclib.client.render.BaseChestBlockEntityRenderer;
|
import org.betterx.bclib.client.render.BaseChestBlockEntityRenderer;
|
||||||
import org.betterx.bclib.config.Configs;
|
import org.betterx.bclib.config.Configs;
|
||||||
|
@ -110,8 +109,6 @@ public class PostInitAPI {
|
||||||
}
|
}
|
||||||
if (block instanceof BaseChestBlock) {
|
if (block instanceof BaseChestBlock) {
|
||||||
BaseBlockEntities.CHEST.registerBlock(block);
|
BaseBlockEntities.CHEST.registerBlock(block);
|
||||||
} else if (block instanceof BaseSignBlock) {
|
|
||||||
BaseBlockEntities.SIGN.registerBlock(block);
|
|
||||||
} else if (block instanceof BaseBarrelBlock) {
|
} else if (block instanceof BaseBarrelBlock) {
|
||||||
BaseBlockEntities.BARREL.registerBlock(block);
|
BaseBlockEntities.BARREL.registerBlock(block);
|
||||||
} else if (block instanceof BaseFurnaceBlock) {
|
} else if (block instanceof BaseFurnaceBlock) {
|
||||||
|
|
|
@ -16,17 +16,13 @@ import net.minecraft.core.registries.BuiltInRegistries;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.level.block.Block;
|
import net.minecraft.world.level.block.Block;
|
||||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
import net.minecraft.world.level.block.entity.SignBlockEntity;
|
|
||||||
|
|
||||||
public class BaseBlockEntities {
|
public class BaseBlockEntities {
|
||||||
public static final DynamicBlockEntityType<BaseChestBlockEntity> CHEST = registerBlockEntityType(BCLib.makeID(
|
public static final DynamicBlockEntityType<BaseChestBlockEntity> CHEST = registerBlockEntityType(BCLib.makeID(
|
||||||
"chest"), BaseChestBlockEntity::new);
|
"chest"), BaseChestBlockEntity::new);
|
||||||
public static final DynamicBlockEntityType<BaseBarrelBlockEntity> BARREL = registerBlockEntityType(BCLib.makeID(
|
public static final DynamicBlockEntityType<BaseBarrelBlockEntity> BARREL = registerBlockEntityType(BCLib.makeID(
|
||||||
"barrel"), BaseBarrelBlockEntity::new);
|
"barrel"), BaseBarrelBlockEntity::new);
|
||||||
public static final DynamicBlockEntityType<SignBlockEntity> SIGN = registerBlockEntityType(
|
|
||||||
BCLib.makeID("sign"),
|
|
||||||
SignBlockEntity::new
|
|
||||||
);
|
|
||||||
public static final DynamicBlockEntityType<BaseFurnaceBlockEntity> FURNACE = registerBlockEntityType(BCLib.makeID(
|
public static final DynamicBlockEntityType<BaseFurnaceBlockEntity> FURNACE = registerBlockEntityType(BCLib.makeID(
|
||||||
"furnace"), BaseFurnaceBlockEntity::new);
|
"furnace"), BaseFurnaceBlockEntity::new);
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ package org.betterx.bclib.registry;
|
||||||
|
|
||||||
import org.betterx.bclib.client.render.BaseChestBlockEntityRenderer;
|
import org.betterx.bclib.client.render.BaseChestBlockEntityRenderer;
|
||||||
|
|
||||||
import net.minecraft.client.renderer.blockentity.SignRenderer;
|
|
||||||
|
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
import net.fabricmc.api.Environment;
|
import net.fabricmc.api.Environment;
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
|
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
|
||||||
|
@ -12,8 +10,5 @@ import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
|
||||||
public class BaseBlockEntityRenders {
|
public class BaseBlockEntityRenders {
|
||||||
public static void register() {
|
public static void register() {
|
||||||
BlockEntityRendererRegistry.register(BaseBlockEntities.CHEST, BaseChestBlockEntityRenderer::new);
|
BlockEntityRendererRegistry.register(BaseBlockEntities.CHEST, BaseChestBlockEntityRenderer::new);
|
||||||
|
|
||||||
//make sure we can lod signs from older worlds. Can be removed in the future
|
|
||||||
BlockEntityRendererRegistry.register(BaseBlockEntities.SIGN, SignRenderer::new);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue