mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Merge pull request #93 from Terpo/0.2
fix missing entity type classification #92
This commit is contained in:
commit
0e0148cbb6
1 changed files with 7 additions and 4 deletions
|
@ -19,9 +19,10 @@ import net.minecraftforge.fml.client.registry.RenderingRegistry;
|
||||||
|
|
||||||
public enum AllEntities {
|
public enum AllEntities {
|
||||||
|
|
||||||
CONTRAPTION(ContraptionEntity::new, 30, 3, true, ContraptionEntity::build),
|
CONTRAPTION(ContraptionEntity::new, EntityClassification.MISC, 30, 3, true,
|
||||||
STATIONARY_CONTRAPTION(ContraptionEntity::new, 30, 40, false, ContraptionEntity::build),
|
ContraptionEntity::build),
|
||||||
|
STATIONARY_CONTRAPTION(ContraptionEntity::new, EntityClassification.MISC, 30, 40,
|
||||||
|
false, ContraptionEntity::build),
|
||||||
;
|
;
|
||||||
|
|
||||||
private IFactory<?> factory;
|
private IFactory<?> factory;
|
||||||
|
@ -33,9 +34,11 @@ public enum AllEntities {
|
||||||
|
|
||||||
public EntityType<? extends Entity> type;
|
public EntityType<? extends Entity> type;
|
||||||
|
|
||||||
private AllEntities(IFactory<?> factory, int range, int updateFrequency, boolean sendVelocity,
|
private AllEntities(IFactory<?> factory, EntityClassification group, int range, int updateFrequency,
|
||||||
|
boolean sendVelocity,
|
||||||
Function<EntityType.Builder<? extends Entity>, EntityType.Builder<? extends Entity>> propertyBuilder) {
|
Function<EntityType.Builder<? extends Entity>, EntityType.Builder<? extends Entity>> propertyBuilder) {
|
||||||
this.factory = factory;
|
this.factory = factory;
|
||||||
|
this.group = group;
|
||||||
this.range = range;
|
this.range = range;
|
||||||
this.updateFrequency = updateFrequency;
|
this.updateFrequency = updateFrequency;
|
||||||
this.sendVelocity = sendVelocity;
|
this.sendVelocity = sendVelocity;
|
||||||
|
|
Loading…
Reference in a new issue