Package | Description |
---|---|
net.minecraft.entity | |
net.minecraftforge.fml.network |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<FMLPlayMessages.SpawnEntity,World,T> |
EntityType.customClientFactory |
private java.util.function.BiFunction<FMLPlayMessages.SpawnEntity,World,T> |
EntityType.Builder.customClientFactory |
Modifier and Type | Method and Description |
---|---|
T |
EntityType.customClientSpawn(FMLPlayMessages.SpawnEntity packet,
World world) |
Modifier and Type | Method and Description |
---|---|
EntityType.Builder<T> |
EntityType.Builder.setCustomClientFactory(java.util.function.BiFunction<FMLPlayMessages.SpawnEntity,World,T> customClientFactory)
By default, entities are spawned clientside via
EntityType.create(World) . |
Constructor and Description |
---|
EntityType(EntityType.IFactory<T> factoryIn,
EntityClassification classificationIn,
boolean serializableIn,
boolean summonableIn,
boolean immuneToFireIn,
boolean p_i51559_6_,
EntitySize sizeIn,
java.util.function.Predicate<EntityType<?>> velocityUpdateSupplier,
java.util.function.ToIntFunction<EntityType<?>> trackingRangeSupplier,
java.util.function.ToIntFunction<EntityType<?>> updateIntervalSupplier,
java.util.function.BiFunction<FMLPlayMessages.SpawnEntity,World,T> customClientFactory) |
Modifier and Type | Method and Description |
---|---|
static FMLPlayMessages.SpawnEntity |
FMLPlayMessages.SpawnEntity.decode(PacketBuffer buf) |
Modifier and Type | Method and Description |
---|---|
static void |
FMLPlayMessages.SpawnEntity.encode(FMLPlayMessages.SpawnEntity msg,
PacketBuffer buf) |
static void |
FMLPlayMessages.SpawnEntity.handle(FMLPlayMessages.SpawnEntity msg,
java.util.function.Supplier<NetworkEvent.Context> ctx) |