mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Remove some deprecated methods and clean up
This commit is contained in:
1 parent
7892ca922c
commit
9a09ff68aa
28 files changed
+45
-444
No files matched your search
@@ -3,7 +3,6 @@ package net.minecraftforge.debug;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTBase;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -189,26 +188,6 @@ public class TestCapabilityMod
|
||||
}
|
||||
}
|
||||
|
||||
// these can be removed if we remove these legacy events
|
||||
@SubscribeEvent
|
||||
public void onItemLoadLegacy(AttachCapabilitiesEvent<Item> event)
|
||||
{
|
||||
if (event.getObject() == Items.APPLE)
|
||||
{
|
||||
event.addCapability(new ResourceLocation("forge.testcapmod:dummy_cap"), new Provider<Item>(event.getObject()));
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onItemLoadLegacy(AttachCapabilitiesEvent.Item event)
|
||||
{
|
||||
if (event.getObject() == Items.ARROW)
|
||||
{
|
||||
event.addCapability(new ResourceLocation("forge.testcapmod:dummy_cap"), new Provider<Item>(event.getObject()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@SubscribeEvent
|
||||
public void attachEvent(AttachCapabilitiesEvent event) //Test Raw type gets everything still.
|
||||
|
||||
Reference in new issue
Block a user