Fix create method.
Fix test mods not loading correctly.
This commit is contained in:
parent
a1110b92d0
commit
30227a1e28
4 changed files with 14 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
|||
return this.field_82707_i;
|
||||
}
|
||||
|
||||
+ public static EntityClassification create(String name, String p_i50381_3_, int p_i50381_4_, boolean p_i50381_5_, boolean p_i50381_6_) {
|
||||
+ public static EntityClassification create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) {
|
||||
+ throw new IllegalStateException("Enum not extended");
|
||||
+ }
|
||||
+
|
||||
|
|
|
@ -87,7 +87,7 @@ public class CustomPlantTypeTest
|
|||
|
||||
public static class CustomPlantBlock extends FlowerBlock implements IPlantable
|
||||
{
|
||||
public static PlantType pt = PlantType.get("CustomPlantType");
|
||||
public static PlantType pt = PlantType.get("custom_plant_type");
|
||||
|
||||
public CustomPlantBlock()
|
||||
{
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
package net.minecraftforge.debug.entity;
|
||||
|
||||
import net.minecraft.entity.EntityClassification;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@Mod("create_entity_classification_test")
|
||||
public class CreateEntityClassificationTest
|
||||
{
|
||||
public static EntityClassification test = EntityClassification.create("TEST", "test", 1, true, true, 128);
|
||||
}
|
|
@ -1,8 +1,6 @@
|
|||
modLoader="javafml"
|
||||
loaderVersion="[28,)"
|
||||
|
||||
[[mods]]
|
||||
modId="mark_dimension_for_deletion_test"
|
||||
[[mods]]
|
||||
modId="containertypetest"
|
||||
[[mods]]
|
||||
|
@ -68,3 +66,5 @@ loaderVersion="[28,)"
|
|||
modId="stencil_enable_test"
|
||||
[[mods]]
|
||||
modId="deferred_registry_test"
|
||||
[[mods]]
|
||||
modId="create_entity_classification_test"
|
Loading…
Reference in a new issue