mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
Initial 1.11-pre1 update
This commit is contained in:
1 parent
c177219ff3
commit
4e6a774075
294 files changed
+3099
-2846
No files matched your search
+3
-2
@@ -17,6 +17,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -32,10 +33,10 @@ public class ItemBlockSubstitutionRemoveRestoreTest
|
||||
private static class ItemMyDirt extends ItemMultiTexture
|
||||
{
|
||||
public ItemMyDirt() {
|
||||
super(Blocks.DIRT, Blocks.DIRT, new Function<ItemStack, String>()
|
||||
super(Blocks.DIRT, Blocks.DIRT, new Mapper()
|
||||
{
|
||||
@Nullable
|
||||
public String apply(@Nullable ItemStack p_apply_1_)
|
||||
public String apply(@Nonnull ItemStack p_apply_1_)
|
||||
{
|
||||
return BlockDirt.DirtType.byMetadata(p_apply_1_.getMetadata()).getUnlocalizedName();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user