mirror of
https://github.com/TechnoVisionDev/Forge-Modding-Tutorial-1.16
synced 2024-10-27 20:34:04 +00:00
Update mappings to 20200723-1.16.1
This commit is contained in:
parent
0595d64df1
commit
ae4ee12175
@ -26,7 +26,7 @@ minecraft {
|
|||||||
// stable_# Stables are built at the discretion of the MCP team.
|
// stable_# Stables are built at the discretion of the MCP team.
|
||||||
// Use non-default mappings at your own risk. they may not always work.
|
// 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.
|
// 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.
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
|
|
||||||
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
@ -34,8 +34,8 @@ public class Tutorial
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setup(final FMLCommonSetupEvent event) {
|
private void setup(final FMLCommonSetupEvent event) {
|
||||||
DeferredWorkQueue.runLater(() -> { // func_233813_a_() --> create()
|
DeferredWorkQueue.runLater(() -> {
|
||||||
GlobalEntityTypeAttributes.put(ModEntityType.HOG.get(), HogEntity.setCustomAttributes().func_233813_a_());
|
GlobalEntityTypeAttributes.put(ModEntityType.HOG.get(), HogEntity.setCustomAttributes().create());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ public class HogEntity extends AnimalEntity {
|
|||||||
public static AttributeModifierMap.MutableAttribute setCustomAttributes() {
|
public static AttributeModifierMap.MutableAttribute setCustomAttributes() {
|
||||||
//func_233666_p_ ---> registerAttributes()
|
//func_233666_p_ ---> registerAttributes()
|
||||||
//func_233815_a_ ---> createMutableAttribute()
|
//func_233815_a_ ---> createMutableAttribute()
|
||||||
return MobEntity.func_233666_p_().func_233815_a_(Attributes.MAX_HEALTH, 10.0D)
|
return MobEntity.func_233666_p_().createMutableAttribute(Attributes.MAX_HEALTH, 10.0D)
|
||||||
.func_233815_a_(Attributes.MOVEMENT_SPEED, 0.25D);
|
.createMutableAttribute(Attributes.MOVEMENT_SPEED, 0.25D);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -40,7 +40,7 @@ public class ModClientEvents {
|
|||||||
if (player.getHeldItemMainhand().getItem() == Items.STICK) {
|
if (player.getHeldItemMainhand().getItem() == Items.STICK) {
|
||||||
Tutorial.LOGGER.info("Player tried to jump with a stick!");
|
Tutorial.LOGGER.info("Player tried to jump with a stick!");
|
||||||
World world = player.getEntityWorld();
|
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
|
@Override
|
||||||
public float func_230304_f_() {
|
public float getKnockbackResistance() {
|
||||||
return this.knockbackResistance;
|
return this.knockbackResistance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user