Cleanup @Environment annotations.
This commit is contained in:
parent
d305a7f092
commit
4be0031344
14 changed files with 80 additions and 46 deletions
|
@ -27,8 +27,6 @@ package reborncore.client;
|
|||
import com.mojang.serialization.Codec;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
|
@ -49,7 +47,6 @@ import reborncore.common.chunkloading.ChunkLoaderManager;
|
|||
import reborncore.common.network.ExtendedPacketBuffer;
|
||||
import reborncore.common.screen.BuiltScreenHandler;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ClientBoundPacketHandlers {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ClientBoundPacketHandlers.class);
|
||||
|
||||
|
|
|
@ -25,10 +25,12 @@
|
|||
package reborncore.client;
|
||||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.render.*;
|
||||
import net.minecraft.client.render.BufferBuilder;
|
||||
import net.minecraft.client.render.Tessellator;
|
||||
import net.minecraft.client.render.VertexConsumerProvider;
|
||||
import net.minecraft.client.render.VertexFormat;
|
||||
import net.minecraft.client.render.VertexFormats;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.common.chunkloading.ChunkLoaderManager;
|
||||
|
@ -37,7 +39,6 @@ import reborncore.common.network.ServerBoundPackets;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ClientChunkManager {
|
||||
|
||||
private static final List<ChunkLoaderManager.LoadedChunk> loadedChunks = new ArrayList<>();
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
package reborncore.client;
|
||||
|
||||
import com.mojang.serialization.Codec;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
|
||||
import net.minecraft.util.Identifier;
|
||||
import reborncore.common.network.ExtendedPacketBuffer;
|
||||
|
@ -34,7 +32,6 @@ import reborncore.common.network.IdentifiedPacket;
|
|||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ClientNetworkManager {
|
||||
public static void registerClientBoundHandler(Identifier identifier, ClientPlayNetworking.PlayChannelHandler handler) {
|
||||
ClientPlayNetworking.registerGlobalReceiver(identifier, handler);
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
package reborncore.client.gui.builder;
|
||||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.font.TextRenderer;
|
||||
|
@ -246,7 +244,6 @@ public class GuiBase<T extends ScreenHandler> extends HandledScreen<T> {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
@Override
|
||||
protected void drawForeground(MatrixStack matrixStack, int mouseX, int mouseY) {
|
||||
drawTitle(matrixStack);
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
|
||||
package reborncore.client.multiblock;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.FluidBlock;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
|
@ -49,7 +47,6 @@ import java.util.function.BiPredicate;
|
|||
/**
|
||||
* Renders a hologram
|
||||
*/
|
||||
@Environment(EnvType.CLIENT)
|
||||
public
|
||||
record HologramRenderer(BlockRenderView view, MatrixStack matrix, VertexConsumerProvider vertexConsumerProvider,
|
||||
float scale) implements MultiblockWriter {
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
package reborncore.common.screen.slot;
|
||||
|
||||
import com.mojang.datafixers.util.Pair;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.screen.PlayerScreenHandler;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
@ -54,7 +52,6 @@ public class SpriteSlot extends FilteredSlot {
|
|||
|
||||
@Override
|
||||
@Nullable
|
||||
@Environment(EnvType.CLIENT)
|
||||
public Pair<Identifier, Identifier> getBackgroundSprite() {
|
||||
return Pair.of(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, spriteName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue