Update mappings to 09/21 snapshots.

Conflict with getMatrix in ITransformation, so renamed to getMatrixVec.
This commit is contained in:
LexManos committed 2018-09-22 03:40:22 -07:00
1 parent 5ed03945a0
commit 94e1a8e0a4
210 files changed
+1052 -978

No files matched your search

@@ -61,7 +61,7 @@ class NamespacedDefaultedWrapper<V extends IForgeRegistryEntry<V>> extends Regis
}
@Override
public void putObject(ResourceLocation key, V value)
public void put(ResourceLocation key, V value)
{
register(-1, key, value);
}
@@ -75,14 +75,14 @@ class NamespacedDefaultedWrapper<V extends IForgeRegistryEntry<V>> extends Regis
// Reading Functions
@Override
@Nullable
public V getObject(@Nullable ResourceLocation name)
public V get(@Nullable ResourceLocation name)
{
return this.delegate.getValue(name);
}
@Override
@Nullable
public ResourceLocation getNameForObject(V value)
public ResourceLocation getKey(V value)
{
return this.delegate.getKey(value);
}
@@ -94,14 +94,14 @@ class NamespacedDefaultedWrapper<V extends IForgeRegistryEntry<V>> extends Regis
}
@Override
public int getIDForObject(@Nullable V value)
public int getId(@Nullable V value)
{
return this.delegate.getID(value);
}
@Override
@Nullable
public V getObjectById(int id)
public V get(int id)
{
return this.delegate.getValue(id);
}
@@ -120,7 +120,7 @@ class NamespacedDefaultedWrapper<V extends IForgeRegistryEntry<V>> extends Regis
@Override
@Nullable
public V getRandomObject(Random random)
public V getRandom(Random random)
{
Collection<V> values = this.delegate.getValues();
return values.stream().skip(random.nextInt(values.size())).findFirst().orElse(null);