Class InstantDelayProvider
java.lang.Object
net.thewinnt.cutscenes.effect.chardelays.types.InstantDelayProvider
- All Implemented Interfaces:
DelayProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturns the symbol that is needed for this provider to be used.doubledefaultDelay(int codepoint) Returns the default character delay, in ticksdoubledelay(int codepoint) Returns the delay in ticks for the given character.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) Serializes this provider for network.
-
Field Details
-
INSTANCE
-
-
Method Details
-
activationCodepoint
public int activationCodepoint()Description copied from interface:DelayProviderReturns the symbol that is needed for this provider to be used.- Specified by:
activationCodepointin interfaceDelayProvider
-
delay
public double delay(int codepoint) Description copied from interface:DelayProviderReturns the delay in ticks for the given character. It will be applied right afterward.- Specified by:
delayin interfaceDelayProvider
-
defaultDelay
public double defaultDelay(int codepoint) Description copied from interface:DelayProviderReturns the default character delay, in ticks- Specified by:
defaultDelayin interfaceDelayProvider
-
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:DelayProviderSerializes this provider for network.- Specified by:
toNetworkin interfaceDelayProvider
-
getSerializer
- Specified by:
getSerializerin interfaceDelayProvider
-