public class TerminalStorageLocationRegistry extends java.lang.Object implements ITerminalStorageLocationRegistry
ITerminalStorageLocationRegistry.| Constructor and Description |
|---|
TerminalStorageLocationRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static TerminalStorageLocationRegistry |
getInstance() |
ITerminalStorageLocation<?> |
getLocation(net.minecraft.util.ResourceLocation name)
Get a location by unique name.
|
java.util.Collection<ITerminalStorageLocation<?>> |
getLocations() |
<L,T extends ITerminalStorageLocation<L>> |
register(T location)
Register a new location type.
|
public static TerminalStorageLocationRegistry getInstance()
public <L,T extends ITerminalStorageLocation<L>> T register(T location)
ITerminalStorageLocationRegistryregister in interface ITerminalStorageLocationRegistryL - The location type.T - The location type type.location - The location to register.@Nullable public ITerminalStorageLocation<?> getLocation(net.minecraft.util.ResourceLocation name)
ITerminalStorageLocationRegistrygetLocation in interface ITerminalStorageLocationRegistryname - The location name.public java.util.Collection<ITerminalStorageLocation<?>> getLocations()
getLocations in interface ITerminalStorageLocationRegistry