diff --git a/ReadMe.md b/ReadMe.md index 9c3e52c..5539be0 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -60,8 +60,8 @@ you register the entity as if it were any other entity public class ModEntities { public static DeferredRegister> ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.ENTITIES, Halsvehicleframework.MOD_ID); - public static final RegistryObject> AEROPLANE = - ENTITY_TYPES.register("aeroplane", ()-> EntityType.Builder.create(Aeroplane::new, + public static final RegistryObject> AEROPLANE = + ENTITY_TYPES.register("aeroplane", ()-> EntityType.Builder.create(AeroplaneExample::new, EntityClassification.MISC ).size(3f,2f).build(new ResourceLocation(Halsvehicleframework.MOD_ID, "aeroplane").toString())); } ``` @@ -102,7 +102,7 @@ then you add whatever animations you want in the `setRotationAngles` function us ``` @Override public void setRotationAngles(VehicleBaseEntity entity, float f, float f1, float f2, float f3, float f4) { - Aeroplane aeroplane = (Aeroplane)entity; + AeroplaneExample aeroplane = (AeroplaneExample)entity; aeroplane.GetAnimationManager().PropellerAnimation(propeller, aeroplane, AnimationAxis.Z_AXIS, false); //propeller is the name of the ModelRenderer which has the 3d models propeller in it } ``` \ No newline at end of file