Class ScreenShakeS2C
java.lang.Object
com.binaris.wizardry.core.networking.s2c.ScreenShakeS2C
- All Implemented Interfaces:
Message
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScreenShakeS2C(float intensity, int duration) ScreenShakeS2C(net.minecraft.network.FriendlyByteBuf pBuf) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.networking.abst.Message
handleServer
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
ScreenShakeS2C
public ScreenShakeS2C(float intensity, int duration) -
ScreenShakeS2C
public ScreenShakeS2C(net.minecraft.network.FriendlyByteBuf pBuf)
-
-
Method Details
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf pBuf) -
handleClient
public void handleClient()- Specified by:
handleClientin interfaceMessage
-
getIntensity
public float getIntensity() -
getDuration
public int getDuration() -
getId
public net.minecraft.resources.ResourceLocation getId()
-