public static class EntityType.Builder<T extends Entity> extends Object
Modifier and Type | Field and Description |
---|---|
private EntityCategory |
category |
private EntityType.EntityFactory<T> |
factory |
private int |
field_22471 |
private int |
field_22472 |
private boolean |
fireImmune |
private boolean |
saveable |
private EntityDimensions |
size |
private boolean |
spawnableFarFromPlayer |
private boolean |
summonable |
Modifier | Constructor and Description |
---|---|
private |
Builder(EntityType.EntityFactory<T> factory,
EntityCategory category) |
Modifier and Type | Method and Description |
---|---|
EntityType<T> |
build(String id) |
static <T extends Entity> |
create(EntityCategory category) |
static <T extends Entity> |
create(EntityType.EntityFactory<T> factory,
EntityCategory category) |
EntityType.Builder<T> |
disableSaving() |
EntityType.Builder<T> |
disableSummon() |
EntityType.Builder<T> |
makeFireImmune() |
EntityType.Builder<T> |
method_24910(int int2) |
EntityType.Builder<T> |
setDimensions(float width,
float height) |
EntityType.Builder<T> |
spawnableFarFromPlayer() |
private final EntityType.EntityFactory<T extends Entity> factory
private final EntityCategory category
private boolean saveable
private boolean summonable
private boolean fireImmune
private boolean spawnableFarFromPlayer
private int field_22471
private int field_22472
private EntityDimensions size
private Builder(EntityType.EntityFactory<T> factory, EntityCategory category)
public static <T extends Entity> EntityType.Builder<T> create(EntityType.EntityFactory<T> factory, EntityCategory category)
public static <T extends Entity> EntityType.Builder<T> create(EntityCategory category)
public EntityType.Builder<T> setDimensions(float width, float height)
public EntityType.Builder<T> disableSummon()
public EntityType.Builder<T> disableSaving()
public EntityType.Builder<T> makeFireImmune()
public EntityType.Builder<T> spawnableFarFromPlayer()
public EntityType.Builder<T> method_24910(int int2)
public EntityType<T> build(String id)