Small cleanup
This commit is contained in:
parent
a98c391e65
commit
42f8754912
7 changed files with 3 additions and 8 deletions
|
@ -52,7 +52,7 @@ import ru.betterend.client.models.Patterns;
|
|||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.rituals.InfusionRitual;
|
||||
|
||||
@SuppressWarnings({"deprecation", "unused"})
|
||||
@SuppressWarnings({"deprecation"})
|
||||
public class PedestalBlock extends BaseBlockNotFull implements EntityBlock {
|
||||
public final static EnumProperty<PedestalState> STATE = EndBlockProperties.PEDESTAL_STATE;
|
||||
public static final BooleanProperty HAS_ITEM = EndBlockProperties.HAS_ITEM;
|
||||
|
|
|
@ -13,9 +13,9 @@ import net.minecraft.network.chat.TranslatableComponent;
|
|||
import net.minecraft.world.level.block.Block;
|
||||
import ru.bclib.blocks.BaseChestBlock;
|
||||
import ru.bclib.blocks.BaseSignBlock;
|
||||
import ru.bclib.client.render.BCLRenderLayer;
|
||||
import ru.bclib.client.render.BaseChestBlockEntityRenderer;
|
||||
import ru.bclib.client.render.BaseSignBlockEntityRenderer;
|
||||
import ru.bclib.client.render.BCLRenderLayer;
|
||||
import ru.bclib.interfaces.IRenderTyped;
|
||||
import ru.bclib.util.TranslationHelper;
|
||||
import ru.betterend.BetterEnd;
|
||||
|
|
|
@ -14,7 +14,6 @@ import net.minecraft.resources.ResourceLocation;
|
|||
public class EndCrystalRenderer {
|
||||
private static final ResourceLocation CRYSTAL_TEXTURE = new ResourceLocation("textures/entity/end_crystal/end_crystal.png");
|
||||
private static final ResourceLocation CRYSTAL_BEAM_TEXTURE = new ResourceLocation("textures/entity/end_crystal/end_crystal_beam.png");
|
||||
private static final RenderType CRYSTAL_BEAM_LAYER;
|
||||
private static final RenderType END_CRYSTAL;
|
||||
private static final ModelPart CORE;
|
||||
private static final ModelPart FRAME;
|
||||
|
@ -45,7 +44,7 @@ public class EndCrystalRenderer {
|
|||
|
||||
static {
|
||||
END_CRYSTAL = RenderType.entityCutoutNoCull(CRYSTAL_TEXTURE);
|
||||
CRYSTAL_BEAM_LAYER = RenderType.entitySmoothCutout(CRYSTAL_BEAM_TEXTURE);
|
||||
RenderType.entitySmoothCutout(CRYSTAL_BEAM_TEXTURE);
|
||||
SINE_45_DEGREES = (float) Math.sin(0.7853981633974483D);
|
||||
FRAME = new ModelPart(64, 32, 0, 0);
|
||||
FRAME.addBox(-4.0F, -4.0F, -4.0F, 8.0F, 8.0F, 8.0F);
|
||||
|
|
|
@ -21,7 +21,6 @@ public class EndAnvilItem extends BaseAnvilItem {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
protected BlockState getPlacementState(BlockPlaceContext blockPlaceContext) {
|
||||
BlockState blockState = super.getPlacementState(blockPlaceContext);
|
||||
ItemStack stack = blockPlaceContext.getItemInHand();
|
||||
|
|
|
@ -47,7 +47,6 @@ import ru.betterend.item.material.EndArmorMaterial;
|
|||
import ru.betterend.item.material.EndToolMaterial;
|
||||
import ru.betterend.tab.CreativeTabs;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class EndBlocks extends BlocksRegistry {
|
||||
// Terrain //
|
||||
public static final Block ENDSTONE_DUST = registerBlock("endstone_dust", new EndstoneDustBlock());
|
||||
|
|
|
@ -42,7 +42,6 @@ import ru.betterend.item.material.EndToolMaterial;
|
|||
import ru.betterend.item.tool.EndHammerItem;
|
||||
import ru.betterend.tab.CreativeTabs;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class EndItems extends ItemsRegistry {
|
||||
// Materials //
|
||||
public final static Item ENDER_DUST = registerEndItem("ender_dust");
|
||||
|
|
|
@ -33,7 +33,6 @@ import ru.betterend.blocks.basis.PedestalBlock;
|
|||
import ru.betterend.item.tool.EndHammerItem;
|
||||
import ru.betterend.mixin.common.ComposterBlockAccessor;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class EndTags {
|
||||
// Table with common (c) tags:
|
||||
// https://fabricmc.net/wiki/tutorial:tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue