Changed/New Methods in 1.6.1
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
Still loading...
ABCDEFGHIJKLMNOPQRST
1
Minecraft 1.6.1 Update Stuff!
2
For access to edit, Contact iPixeli on IRC
3
4
5
Old Place/ThingNew Place/ThingNotes
6
mc.session.usernamemc.thePlayer.usernameDidn't change, but session is protected now
7
mc.renderEngine.getTexture(textureName)mc.renderEngine.func_110581_b(textureLocation).func_110552_b()renderEngine probably needs a rename to 'textureManager'
8
mc.renderEngine.bindTexture(textureName)mc.renderEngine.func_110577_a(textureLocation)
9
ICommandSender.sendChatToPlayer(message);ICommandSender.sendChatToPlayer(ChatMessageComponent.func_111066_d(message))MCP 8.02 (Forge < 763; FML < 689) -> sendChatToPlayer = func_110122_a
10
ServerChatEvent.lineServerChatEvent.componentUsed to format chat messages without messing up the prefixes
11
EntityLiving.textureSee renderer.entity.renderXXX and AbstractClientPlayerTexture of living entities
12
Minecraft.getMinecraftDir()Minecraft.mcDataDirMAY NOT BE THE SAME LOCATION - contains resourcepacks/, saves/, stats, options.txt (at least)
13
StringTranslate.getInstance().getCurrentLanguage()mc.func_135016_M().func_135041_c().func_135034_a()Current Language
14
SoundManager.sndSystemThis part at least looks the same, except for not being static.
No longer static
15
Item.isValidArmor(item, slot)Item.isValidArmor(item, slot, entity)Forge change, see https://github.com/MinecraftForge/MinecraftForge/commit/810b0 & https://github.com/MinecraftForge/MinecraftForge/commit/417ff
16
@Mod.PreInit, @Mod.Init, @Mod.PostInit@Mod.EventHandlerSame annotation for all 3 methods now
17
Side.BUKKITN/ANo longer exists
18
EntityLiving.getHealth()EntityLivingBase.func_110143_aJ()Probably. Health appears to now be a float.
19
Item/Block.setUnlocalizedName(string) FOR TEXTURE LOOKUPItem.func_111206_d(string) / Block.func_111022_d(string)Item function is protected. setUnlocalizedString still exists for display name.Example: .setUnlocalizedName("shovelIron").func_111206_d("iron_shovel");
20
VillagerRegistry.instance().registerVillagerType(id, texture)VillagerRegistry.instance().registerVillagerId(id); VillagerRegistry.instance().registerVillagerSkin(id, texture);Split into two functions
21
IArmorTextureProviderItem.getArmorTextureReturn goes to ResourceLocation constructor, see that section for filename details.
22
StringTranslate.getInstance().translate(string)I18n.func_135053_a(string)String names may be different than they were
23
24

25
ResourceLocation:
26
ResourceLocation(filename)assets/minecraft/<filename><domain> defaults to 'minecraft' if not specified
27
ResourceLocation("domain:filename")assets/<domain>/<filename>Block/Item Textures: Forge 756+ assets/<domain>/textures/<block|item>/<name>.png
28
ResourceLocation(domain, filename)assets/<domain>/<filename>Mods require a pack.mcmeta file. Minimal Example: http://pastebin.com/MGzBEHxb
29
30
31
Textures:
32
net.minecraft.client.renderer.entity.RenderPlayer.field_110826_aPlayer texture
33
TextureMap.field_110575_bBlock texture atlas
34
TextureMap.field_110576_cItem texture atlas
35
36
37
Sounds:
38
mc.sndManager.addSound(filename);assets/<domain>/sounds/<soundFile>"domain:filename" strings will work in Forge 764+
39
mc.sndManager.addStreaming(filename);assets/<domain>/records/<soundFile>
40
mc.sndManager.addMusic(filename);assets/<domain>/music/<soundFile>
41
42
43
Generic ResourcePack:
44
mc.func_110442_L()Get ResourceManager
45
mc.func_110442_L().func_110536_a(resourceLocation)Get Resource from ResourceLocation
46
resource.func_110527_b()Get InputStream from Resource
47
resource.func_110528_c()Resource has metadata
48
resource.func_110526_a(string)Get resource metadata: currently used: "texture" (TextureMetadataSection), "animation" (AnimationMetadataSection)
49
((ReloadableResourceManager)mc.func_110442_L()).func_110542_a(ResourceManagerReloadListener)Register a listener for reloads/changes of ResourcePacks
50
51
52
Language:
53
assets/<anything>/lang/<langcode>.langForge 753+: Will be automatically injected into the maching language (should be fixed by forge 758)
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
ChangedStuff
MCPNames