mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-08 21:14:41 -04:00
FabricEntityTypeBuilder: Rename immunteToFire field to immuneToFire (#133)
This commit is contained in:
parent
09f7993b17
commit
eabeb85473
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ public class FabricEntityTypeBuilder<T extends Entity> {
|
|||
private int trackingDistance = -1;
|
||||
private int updateIntervalTicks = -1;
|
||||
private boolean alwaysUpdateVelocity = true;
|
||||
private boolean immunteToFire = false;
|
||||
private boolean immuneToFire = false;
|
||||
private EntitySize size = EntitySize.resizeable(-1.0f, -1.0f);
|
||||
|
||||
protected FabricEntityTypeBuilder(EntityCategory category, EntityType.class_4049<T> function) {
|
||||
|
@ -77,7 +77,7 @@ public class FabricEntityTypeBuilder<T extends Entity> {
|
|||
}
|
||||
|
||||
public FabricEntityTypeBuilder<T> setImmuneToFire() {
|
||||
this.immunteToFire = true;
|
||||
this.immuneToFire = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ public class FabricEntityTypeBuilder<T extends Entity> {
|
|||
// TODO: Flesh out once modded datafixers exist.
|
||||
}
|
||||
|
||||
EntityType<T> type = new EntityType<T>(this.function, this.category, this.saveable, this.summonable, this.immunteToFire, null, size);
|
||||
EntityType<T> type = new EntityType<T>(this.function, this.category, this.saveable, this.summonable, this.immuneToFire, null, size);
|
||||
if (trackingDistance != -1) {
|
||||
EntityTrackingRegistry.INSTANCE.register(type, trackingDistance, updateIntervalTicks, alwaysUpdateVelocity);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue