19w14b, just mapping updates

This commit is contained in:
modmuss50 2019-04-05 17:10:11 +01:00
parent ca298f60ed
commit b03a9dbda3
2 changed files with 5 additions and 5 deletions
build.gradle
src/main/java/net/fabricmc/fabric/api/entity

View file

@ -27,7 +27,7 @@ targetCompatibility = 1.8
archivesBaseName = "fabric"
def baseVersion = "0.2.6"
def mcVersion = "19w14a"
def mcVersion = "19w14b"
def ENV = System.getenv()
version = baseVersion + "." + (ENV.BUILD_NUMBER ?: "local")

View file

@ -36,7 +36,7 @@ import java.util.function.Function;
public class FabricEntityTypeBuilder<T extends Entity> {
private static final Logger LOGGER = LogManager.getLogger();
private final EntityCategory category;
private final EntityType.class_4049<T> function;
private final EntityType.EntityFactory<T> function;
private boolean saveable = true;
private boolean summonable = true;
private int trackingDistance = -1;
@ -45,7 +45,7 @@ public class FabricEntityTypeBuilder<T extends Entity> {
private boolean immuneToFire = false;
private EntitySize size = EntitySize.resizeable(-1.0f, -1.0f);
protected FabricEntityTypeBuilder(EntityCategory category, EntityType.class_4049<T> function) {
protected FabricEntityTypeBuilder(EntityCategory category, EntityType.EntityFactory<T> function) {
this.category = category;
this.function = function;
}
@ -55,14 +55,14 @@ public class FabricEntityTypeBuilder<T extends Entity> {
}
/**
* @deprecated Use {@link FabricEntityTypeBuilder#create(EntityCategory, EntityType.class_4049)}
* @deprecated Use {@link FabricEntityTypeBuilder#create(EntityCategory, EntityType.EntityFactory)}
*/
@Deprecated
public static <T extends Entity> FabricEntityTypeBuilder<T> create(EntityCategory category, Function<? super World, ? extends T> function) {
return create(category, (t, w) -> function.apply(w));
}
public static <T extends Entity> FabricEntityTypeBuilder<T> create(EntityCategory category, EntityType.class_4049<T> function) {
public static <T extends Entity> FabricEntityTypeBuilder<T> create(EntityCategory category, EntityType.EntityFactory<T> function) {
return new FabricEntityTypeBuilder<>(category, function);
}