Update mappings to 20200723-1.16.1

master
TechnoVisionDev 4 years ago
parent 0595d64df1
commit ae4ee12175

@ -26,7 +26,7 @@ minecraft {
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'snapshot', version: '20200707-1.16.1'
mappings channel: 'snapshot', version: '20200723-1.16.1'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')

@ -34,8 +34,8 @@ public class Tutorial
}
private void setup(final FMLCommonSetupEvent event) {
DeferredWorkQueue.runLater(() -> { // func_233813_a_() --> create()
GlobalEntityTypeAttributes.put(ModEntityType.HOG.get(), HogEntity.setCustomAttributes().func_233813_a_());
DeferredWorkQueue.runLater(() -> {
GlobalEntityTypeAttributes.put(ModEntityType.HOG.get(), HogEntity.setCustomAttributes().create());
});
}

@ -32,8 +32,8 @@ public class HogEntity extends AnimalEntity {
public static AttributeModifierMap.MutableAttribute setCustomAttributes() {
//func_233666_p_ ---> registerAttributes()
//func_233815_a_ ---> createMutableAttribute()
return MobEntity.func_233666_p_().func_233815_a_(Attributes.MAX_HEALTH, 10.0D)
.func_233815_a_(Attributes.MOVEMENT_SPEED, 0.25D);
return MobEntity.func_233666_p_().createMutableAttribute(Attributes.MAX_HEALTH, 10.0D)
.createMutableAttribute(Attributes.MOVEMENT_SPEED, 0.25D);
}
@Override

@ -40,7 +40,7 @@ public class ModClientEvents {
if (player.getHeldItemMainhand().getItem() == Items.STICK) {
Tutorial.LOGGER.info("Player tried to jump with a stick!");
World world = player.getEntityWorld();
world.setBlockState(player.func_233580_cy_().add(0, -1, 0), ModBlocks.RUBY_BLOCK.get().getDefaultState());
world.setBlockState(player.getPosition().add(0, -1, 0), ModBlocks.RUBY_BLOCK.get().getDefaultState());
}
}

@ -76,7 +76,7 @@ public enum ModArmorMaterial implements IArmorMaterial {
}
@Override
public float func_230304_f_() {
public float getKnockbackResistance() {
return this.knockbackResistance;
}
}

Loading…
Cancel
Save