mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2024-11-15 10:35:12 +01:00
Updated Via API usage
This commit is contained in:
parent
bd9296f7b8
commit
bb669cdfed
@ -23,8 +23,8 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "com.viaversion:viaversion-common:4.10.0"
|
||||
compileOnly "com.viaversion:viabackwards-common:4.10.0"
|
||||
compileOnly "com.viaversion:viaversion-common:4.10.1-SNAPSHOT"
|
||||
compileOnly "com.viaversion:viabackwards-common:4.10.1-SNAPSHOT"
|
||||
compileOnly "org.yaml:snakeyaml:2.2"
|
||||
compileOnly "com.google.guava:guava:33.2.0-jre"
|
||||
compileOnly "io.netty:netty-handler:4.1.109.Final"
|
||||
|
@ -28,8 +28,6 @@ public class MetadataRewriter1_16to20w14infinite extends EntityRewriter<Clientbo
|
||||
|
||||
public MetadataRewriter1_16to20w14infinite(Protocol1_16to20w14infinite protocol) {
|
||||
super(protocol);
|
||||
mapEntityType(Entity20w14infiniteTypes.ZOMBIE_PIGMAN, EntityTypes1_16.ZOMBIFIED_PIGLIN);
|
||||
mapTypes(Entity20w14infiniteTypes.values(), EntityTypes1_16.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -45,6 +43,12 @@ public class MetadataRewriter1_16to20w14infinite extends EntityRewriter<Clientbo
|
||||
filter().type(EntityTypes1_16.ABSTRACT_ARROW).removeIndex(8);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMappingDataLoaded() {
|
||||
mapTypes();
|
||||
mapEntityType(Entity20w14infiniteTypes.ZOMBIE_PIGMAN, EntityTypes1_16.ZOMBIFIED_PIGLIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityType typeFromId(int type) {
|
||||
return EntityTypes1_16.getTypeFromId(type);
|
||||
|
Loading…
Reference in New Issue
Block a user