Class PatchableComponentMap
java.lang.Object
com.github.retrooper.packetevents.protocol.component.PatchableComponentMap
- All Implemented Interfaces:
IComponentMap
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPatchableComponentMap
(StaticComponentMap base, Map<ComponentType<?>, Optional<?>> patches) PatchableComponentMap
(Map<ComponentType<?>, ?> base) PatchableComponentMap
(Map<ComponentType<?>, ?> base, Map<ComponentType<?>, Optional<?>> patches) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
<T> T
get
(ComponentType<T> type) Map
<ComponentType<?>, ?> getBase()
Map
<ComponentType<?>, Optional<?>> boolean
has
(ComponentType<?> type) int
hashCode()
<T> void
set
(ComponentType<T> type, Optional<T> value) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.component.IComponentMap
getOptional, getOr, set, set, unset
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PatchableComponentMap
-
PatchableComponentMap
-
PatchableComponentMap
-
PatchableComponentMap
public PatchableComponentMap(Map<ComponentType<?>, ?> base, Map<ComponentType<?>, Optional<?>> patches)
-
-
Method Details
-
get
- Specified by:
get
in interfaceIComponentMap
-
set
- Specified by:
set
in interfaceIComponentMap
-
has
- Specified by:
has
in interfaceIComponentMap
-
copy
-
getBase
-
getPatches
-
equals
-
hashCode
public int hashCode() -
toString
-