Skip to content

Commit

Permalink
refactor(next): remove deprecated classes and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 28, 2022
1 parent 8ed1400 commit fed4e81
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 414 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/auioc/mcmod/arnicalib/ArnicaLib.java
Expand Up @@ -38,7 +38,4 @@ public static String i18n(String key) {
return MOD_ID + "." + key;
}

@Deprecated /** For compatibility only */
public static final String MODID = "arnicalib";

}
Expand Up @@ -15,11 +15,6 @@ public final class AHCommonEventFactory {

private static final IEventBus BUS = MinecraftForge.EVENT_BUS;

@Deprecated(since = "3.1.1")
public static boolean postPistonAddBlockLineEvent(BlockState blockState, Level level, BlockPos blockPos, Direction direction) {
return BUS.post(new org.auioc.mcmod.arnicalib.common.event.impl.PistonAddBlockLineEvent(blockState, level, blockPos, direction));
}

public static boolean onPistonCheckPushable(BlockState blockState, Level level, BlockPos blockPos, Direction pushDirection, boolean p_60209_, Direction p_60210_) {
return BUS.post(new PistonCheckPushableEvent(blockState, level, blockPos, pushDirection, p_60209_, p_60210_));
}
Expand Down

This file was deleted.

58 changes: 0 additions & 58 deletions src/main/java/org/auioc/mcmod/arnicalib/game/chat/TextUtils.java
@@ -1,12 +1,10 @@
package org.auioc.mcmod.arnicalib.game.chat;

import java.util.List;
import net.minecraft.Util;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.entity.player.Player;

public interface TextUtils {

Expand Down Expand Up @@ -46,60 +44,4 @@ static MutableComponent join(List<Component> texts) {
return join(texts, literal(", "));
}


/* ============================================================================================================== */
// #region Deprecated

@Deprecated(since = "5.4.1", forRemoval = true)
static void chat(Player player, String message) {
player.sendMessage(new TextComponent(message), Util.NIL_UUID);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static void chat(Player player, Component message) {
player.sendMessage(message, Util.NIL_UUID);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TextComponent emptyText() {
return new TextComponent("");
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TextComponent EmptyText() {
return new TextComponent("");
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TextComponent getStringText(String text) {
return new TextComponent(text);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TextComponent StringText(String text) {
return new TextComponent(text);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TranslatableComponent getI18nText(String key) {
return new TranslatableComponent(key);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TranslatableComponent I18nText(String key) {
return new TranslatableComponent(key);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TranslatableComponent getI18nText(String key, Object... arguments) {
return new TranslatableComponent(key, arguments);
}

@Deprecated(since = "5.4.1", forRemoval = true)
static TranslatableComponent I18nText(String key, Object... arguments) {
return new TranslatableComponent(key, arguments);
}

// #endregion Deprecated

}
Expand Up @@ -23,13 +23,4 @@ public static CommandNode<CommandSourceStack> getAHNode(CommandDispatcher<Comman
return node;
}

/**
* @since 5.0.2
* @deprecated Use {@link #getAHNode} instead
*/
@Deprecated(since = "5.1.3", forRemoval = true)
public static CommandNode<CommandSourceStack> getRootNode(CommandDispatcher<CommandSourceStack> dispatcher) {
return getAHNode(dispatcher);
}

}
Expand Up @@ -31,15 +31,6 @@ public static CommandNode<CommandSourceStack> getAHNode(CommandDispatcher<Comman
return node;
}

/**
* @since 4.1.0
* @deprecated Use {@link #getAHNode} instead
*/
@Deprecated(since = "5.1.3", forRemoval = true)
public static CommandNode<CommandSourceStack> getRootNode(CommandDispatcher<CommandSourceStack> dispatcher) {
return getAHNode(dispatcher);
}

private static void addTestNode(CommandNode<CommandSourceStack> node) {
node.addChild(
literal("test")
Expand Down
Expand Up @@ -22,11 +22,6 @@ public ClientIntentionPacket getPacket() {
return this.packet;
}

@Deprecated
public Connection getManager() {
return this.manager;
}

public Connection getNetworkManager() {
return this.manager;
}
Expand Down
50 changes: 0 additions & 50 deletions src/main/java/org/auioc/mcmod/arnicalib/utils/Loggers.java

This file was deleted.

This file was deleted.

0 comments on commit fed4e81

Please sign in to comment.