This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

ModLoader is officially deprecated. It will all cease to be with 1.7.

  • Loading branch information...
cpw committed Oct 6, 2013
1 parent bc64cea commit 55525f6d2eb24f42c26a291b8ce98feb4d4498c9
@@ -42,10 +42,18 @@
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.relauncher.SideOnly;
+
+/**
+ * Bye bye ModLoader. Deprecated without direct replacement
+ * @author cpw
+ *
+ */
+@Deprecated
public abstract class BaseMod implements cpw.mods.fml.common.modloader.BaseModProxy
{
// CALLBACK MECHANISMS
+ @Deprecated
public final boolean doTickInGame(TickType tick, boolean tickEnd, Object... data)
{
Minecraft mc = FMLClientHandler.instance().getClient();
@@ -57,6 +65,7 @@ public final boolean doTickInGame(TickType tick, boolean tickEnd, Object... data
return true;
}
+ @Deprecated
public final boolean doTickInGUI(TickType tick, boolean tickEnd, Object... data)
{
Minecraft mc = FMLClientHandler.instance().getClient();
@@ -177,12 +186,14 @@ public final boolean handleCommand(String command, Object... data)
* @param id
* @param metadata
*/
+ @Deprecated
public int addFuel(int id, int metadata)
{
return 0;
}
@SideOnly(CLIENT)
+ @Deprecated
public void addRenderer(Map<Class<? extends Entity>, Render> renderers)
{
}
@@ -195,6 +206,7 @@ public void addRenderer(Map<Class<? extends Entity>, Render> renderers)
* @param chunkX
* @param chunkZ
*/
+ @Deprecated
public void generateNether(World world, Random random, int chunkX, int chunkZ)
{
}
@@ -207,6 +219,7 @@ public void generateNether(World world, Random random, int chunkX, int chunkZ)
* @param chunkX
* @param chunkZ
*/
+ @Deprecated
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
}
@@ -219,6 +232,7 @@ public void generateSurface(World world, Random random, int chunkX, int chunkZ)
* @param y
* @param z
*/
+ @Deprecated
@SideOnly(CLIENT)
public GuiContainer getContainerGUI(EntityClientPlayerMP player, int containerID, int x, int y, int z)
{
@@ -228,6 +242,7 @@ public GuiContainer getContainerGUI(EntityClientPlayerMP player, int containerID
/**
* Return the name of your mod. Defaults to the class name
*/
+ @Deprecated
public String getName()
{
return getClass().getSimpleName();
@@ -236,6 +251,7 @@ public String getName()
/**
* Get your mod priorities
*/
+ @Deprecated
public String getPriorities()
{
return "";
@@ -244,9 +260,11 @@ public String getPriorities()
/**
* Return the version of your mod
*/
+ @Deprecated
public abstract String getVersion();
@SideOnly(CLIENT)
+ @Deprecated
public void keyboardEvent(KeyBinding event)
{
@@ -255,11 +273,13 @@ public void keyboardEvent(KeyBinding event)
/**
* Load your mod
*/
+ @Deprecated
public abstract void load();
/**
* Finish loading your mod
*/
+ @Deprecated
public void modsLoaded()
{
}
@@ -270,6 +290,7 @@ public void modsLoaded()
* @param player
* @param item
*/
+ @Deprecated
public void onItemPickup(EntityPlayer player, ItemStack item)
{
}
@@ -281,17 +302,20 @@ public void onItemPickup(EntityPlayer player, ItemStack item)
* @param minecraftInstance the client
* @return true to continue receiving ticks
*/
+ @Deprecated
@SideOnly(CLIENT)
public boolean onTickInGame(float time, Minecraft minecraftInstance)
{
return false;
}
+ @Deprecated
public boolean onTickInGame(MinecraftServer minecraftServer)
{
return false;
}
+ @Deprecated
@SideOnly(CLIENT)
public boolean onTickInGUI(float tick, Minecraft game, GuiScreen gui)
{
@@ -305,6 +329,7 @@ public boolean onTickInGUI(float tick, Minecraft game, GuiScreen gui)
* @param text
*/
@Override
+ @Deprecated
public void clientChat(String text)
{
}
@@ -314,6 +339,7 @@ public void clientChat(String text)
* @param handler
*/
@SideOnly(CLIENT)
+ @Deprecated
public void clientConnect(NetClientHandler handler)
{
@@ -324,35 +350,40 @@ public void clientConnect(NetClientHandler handler)
* @param handler
*/
@SideOnly(CLIENT)
+ @Deprecated
public void clientDisconnect(NetClientHandler handler)
{
}
/**
* Called client side to receive a custom payload for this mod
- *
+ *
* NOTE: this method is not provided in Risugami's implementation of BaseMod!
*
* @param packet
*/
@Override
+ @Deprecated
public void receiveCustomPacket(Packet250CustomPayload packet)
{
}
@SideOnly(CLIENT)
+ @Deprecated
public void registerAnimation(Minecraft game)
{
}
@SideOnly(CLIENT)
+ @Deprecated
public void renderInvBlock(RenderBlocks renderer, Block block, int metadata, int modelID)
{
}
@SideOnly(CLIENT)
+ @Deprecated
public boolean renderWorldBlock(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int modelID)
{
return false;
@@ -362,11 +393,13 @@ public boolean renderWorldBlock(RenderBlocks renderer, IBlockAccess world, int x
* NOTE: this method is not provided in Risugami's implementation of BaseMod!
*/
@Override
+ @Deprecated
public void serverConnect(NetHandler handler) {
}
@Override
+ @Deprecated
public void serverCustomPayload(NetServerHandler handler, Packet250CustomPayload packet)
{
@@ -376,6 +409,7 @@ public void serverCustomPayload(NetServerHandler handler, Packet250CustomPayload
* NOTE: this method is not provided in Risugami's implementation of BaseMod!
*/
@Override
+ @Deprecated
public void serverDisconnect() {
}
@@ -386,6 +420,7 @@ public void serverDisconnect() {
* @param item
* @param matrix
*/
+ @Deprecated
public void takenFromCrafting(EntityPlayer player, ItemStack item, IInventory matrix)
{
}
@@ -396,6 +431,7 @@ public void takenFromCrafting(EntityPlayer player, ItemStack item, IInventory ma
* @param player
* @param item
*/
+ @Deprecated
public void takenFromFurnace(EntityPlayer player, ItemStack item)
{
}
@@ -413,27 +449,30 @@ public String toString()
* Called when a chat message is received. Return true to stop further processing
*/
@Override
+ @Deprecated
public void serverChat(NetServerHandler source, String message)
{
}
/**
* Called when a new client logs in.
- *
+ *
* NOTE: this method is not provided in Risugami's implementation of BaseMod!
*
* @param player
*/
@Override
+ @Deprecated
public void onClientLogin(EntityPlayer player)
{
}
/**
* Called when a client logs out of the server.
- *
+ *
* NOTE: this method is not provided in Risugami's implementation of BaseMod!
*/
@Override
+ @Deprecated
public void onClientLogout(INetworkManager mgr)
{
@@ -443,12 +482,14 @@ public void onClientLogout(INetworkManager mgr)
* Spawn the entity of the supplied type, if it is your mod's
*/
@SideOnly(CLIENT)
+ @Deprecated
public Entity spawnEntity(int entityId, World world, double scaledX, double scaledY, double scaledZ)
{
return null;
}
@SideOnly(CLIENT)
+ @Deprecated
public void clientCustomPayload(NetClientHandler handler, Packet250CustomPayload packet)
{
@@ -5,7 +5,7 @@
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
- *
+ *
* Contributors:
* cpw - implementation
*/
@@ -15,18 +15,21 @@
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.EntityRenderer;
+@Deprecated
public class EntityRendererProxy extends EntityRenderer
{
public static final String fmlMarker = "This is an FML marker";
private Minecraft game;
+ @Deprecated
public EntityRendererProxy(Minecraft minecraft)
{
super(minecraft);
game = minecraft;
}
@Override
+ @Deprecated
public void func_78480_b(float tick)
{
super.func_78480_b(tick);
@@ -20,30 +20,35 @@
/**
* @author cpw
- *
+ *
*/
@Retention(value = RUNTIME)
@Target(value = FIELD)
+@Deprecated
public @interface MLProp
{
/**
* Adds additional help to top of configuration file.
*/
+ @Deprecated
String info() default "";
/**
* Maximum value allowed if field is a number.
*/
+ @Deprecated
double max() default Double.MAX_VALUE;
/**
* Minimum value allowed if field is a number.
*/
+ @Deprecated
double min() default Double.MIN_VALUE;
/**
* Overrides the field name for property key.
*/
+ @Deprecated
String name() default "";
}
Oops, something went wrong.

14 comments on commit 55525f6

@forresthopkinsa

This comment has been minimized.

Show comment
Hide comment
@forresthopkinsa

forresthopkinsa Oct 6, 2013

It's about time!

Also, this is a historic moment. So... first!

It's about time!

Also, this is a historic moment. So... first!

@Pokefenn

This comment has been minimized.

Show comment
Hide comment
@Pokefenn

Pokefenn Oct 6, 2013

Well, quite interesting.
It really was pointless having modloader.
ALL HAIL FORGE!

Well, quite interesting.
It really was pointless having modloader.
ALL HAIL FORGE!

@robin4002

This comment has been minimized.

Show comment
Hide comment
@robin4002

robin4002 Oct 6, 2013

👍
Modloader in the trash :D

👍
Modloader in the trash :D

@jk-5

This comment has been minimized.

Show comment
Hide comment
@jk-5

jk-5 Oct 6, 2013

Contributor

Into the trash it goes!

Contributor

jk-5 replied Oct 6, 2013

Into the trash it goes!

@231231231234234234

This comment has been minimized.

Show comment
Hide comment
@231231231234234234

231231231234234234 Oct 6, 2013

Awesome, about time! 👍

Awesome, about time! 👍

@BURN447

This comment has been minimized.

Show comment
Hide comment
@BURN447

BURN447 Oct 6, 2013

@forresthopkinsa

This comment has been minimized.

Show comment
Hide comment
@forresthopkinsa

forresthopkinsa Oct 6, 2013

No, really? ^.^

No, really? ^.^

@xbony2

This comment has been minimized.

Show comment
Hide comment
@xbony2

xbony2 Oct 6, 2013

Well, there we go.
cvomm

Well, there we go.
cvomm

@BURN447

This comment has been minimized.

Show comment
Hide comment
@BURN447

BURN447 Oct 6, 2013

@cpw

This comment has been minimized.

Show comment
Hide comment
@cpw

cpw Oct 6, 2013

Contributor

we had it because modloader mattered when FML started. FML started as a port of modloader to the server, as we saw that 1.3 was going to merge client and server and risu was not interested in doing it..

Contributor

cpw replied Oct 6, 2013

we had it because modloader mattered when FML started. FML started as a port of modloader to the server, as we saw that 1.3 was going to merge client and server and risu was not interested in doing it..

@Vazkii

This comment has been minimized.

Show comment
Hide comment
@Vazkii

Vazkii Oct 6, 2013

Contributor

@forresthopkinsa - I doubt it. He isn't even using ModLoader.
Regardless. /cheer

Contributor

Vazkii replied Oct 6, 2013

@forresthopkinsa - I doubt it. He isn't even using ModLoader.
Regardless. /cheer

@MFernflower

This comment has been minimized.

Show comment
Hide comment
@LexManos

This comment has been minimized.

Show comment
Hide comment
@LexManos

LexManos Oct 6, 2013

Member

That's it, stop with the memes and bullshit.
This is not a place to spam stupid things. If you actually have a legitimate issue bring it up. Else yes we're all happy RML is dead. Lets leave it at that.

Member

LexManos replied Oct 6, 2013

That's it, stop with the memes and bullshit.
This is not a place to spam stupid things. If you actually have a legitimate issue bring it up. Else yes we're all happy RML is dead. Lets leave it at that.

@JoneKone

This comment has been minimized.

Show comment
Hide comment
@JoneKone

JoneKone Oct 7, 2013

I quest it was easier than I thought.

I quest it was easier than I thought.

Please sign in to comment.