Class AttachCapabilitiesEventNetwork
java.lang.Object
net.neoforged.bus.api.Event
org.cyclops.integrateddynamics.api.network.AttachCapabilitiesEventNetwork
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class AttachCapabilitiesEventNetwork
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event for when an
INetwork
is being constructed.
Next to capabilities, also IFullNetworkListener
's can be added to the network.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFullNetworkListener
(IFullNetworkListener fullNetworkListener) Map
<NetworkCapability<?>, List<net.neoforged.neoforge.capabilities.ICapabilityProvider<INetwork, Void, ?>>> <T> void
register
(NetworkCapability<T> capability, net.neoforged.neoforge.capabilities.ICapabilityProvider<INetwork, Void, T> provider)
-
Constructor Details
-
AttachCapabilitiesEventNetwork
-
-
Method Details
-
getNetwork
-
addFullNetworkListener
-
getFullNetworkListeners
-
register
public <T> void register(NetworkCapability<T> capability, net.neoforged.neoforge.capabilities.ICapabilityProvider<INetwork, Void, T> provider) -
getProviders
public Map<NetworkCapability<?>,List<net.neoforged.neoforge.capabilities.ICapabilityProvider<INetwork, getProviders()Void, ?>>>
-