Class StaticClickEventAction<T extends ClickEvent>
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.chat.clickevent.StaticClickEventAction<T>
- All Implemented Interfaces:
ClickEventAction<T>
,MappedEntity
@NullMarked
public class StaticClickEventAction<T extends ClickEvent>
extends AbstractMappedEntity
implements ClickEventAction<T>
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorsConstructorDescriptionStaticClickEventAction
(@Nullable TypesBuilderData data, boolean allowFromServer, NbtMapDecoder<T> decoder, NbtMapEncoder<T> encoder) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(NBTCompound compound, PacketWrapper<?> wrapper) void
encode
(NBTCompound compound, PacketWrapper<?> wrapper, T clickEvent) boolean
Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, 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.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
StaticClickEventAction
@Internal public StaticClickEventAction(@Nullable @Nullable TypesBuilderData data, boolean allowFromServer, NbtMapDecoder<T> decoder, NbtMapEncoder<T> encoder)
-
-
Method Details
-
isAllowFromServer
public boolean isAllowFromServer()- Specified by:
isAllowFromServer
in interfaceClickEventAction<T extends ClickEvent>
-
decode
- Specified by:
decode
in interfaceClickEventAction<T extends ClickEvent>
-
encode
- Specified by:
encode
in interfaceClickEventAction<T extends ClickEvent>
-