Class TerminalStorageLocationRegistry
java.lang.Object
org.cyclops.integratedterminals.core.terminalstorage.location.TerminalStorageLocationRegistry
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IRegistry,ITerminalStorageLocationRegistry
public class TerminalStorageLocationRegistry
extends Object
implements ITerminalStorageLocationRegistry
Implementation of
ITerminalStorageLocationRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocation(net.minecraft.resources.ResourceLocation name) Get a location by unique name.<L,T extends ITerminalStorageLocation<L>>
Tregister(T location) Register a new location type.
-
Constructor Details
-
TerminalStorageLocationRegistry
public TerminalStorageLocationRegistry()
-
-
Method Details
-
getInstance
- Returns:
- The unique instance.
-
register
Description copied from interface:ITerminalStorageLocationRegistryRegister a new location type.- Specified by:
registerin interfaceITerminalStorageLocationRegistry- Type Parameters:
L- The location type.T- The location type type.- Parameters:
location- The location to register.- Returns:
- The registered location.
-
getLocation
@Nullable public ITerminalStorageLocation<?> getLocation(net.minecraft.resources.ResourceLocation name) Description copied from interface:ITerminalStorageLocationRegistryGet a location by unique name.- Specified by:
getLocationin interfaceITerminalStorageLocationRegistry- Parameters:
name- The location name.- Returns:
- The registered location or null.ΓΈ
-
getLocations
- Specified by:
getLocationsin interfaceITerminalStorageLocationRegistry- Returns:
- All registered locations.
-