Package com.hypixel.hytale.protocol
Class ChangeBlockInteraction
java.lang.Object
com.hypixel.hytale.protocol.Interaction
com.hypixel.hytale.protocol.SimpleInteraction
com.hypixel.hytale.protocol.SimpleBlockInteraction
com.hypixel.hytale.protocol.ChangeBlockInteraction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intbooleanstatic final intstatic final intintFields inherited from class com.hypixel.hytale.protocol.SimpleBlockInteraction
useLatestTargetFields inherited from class com.hypixel.hytale.protocol.SimpleInteraction
failed, nextFields inherited from class com.hypixel.hytale.protocol.Interaction
camera, cancelOnItemChange, effects, horizontalSpeedMultiplier, rules, runTime, settings, tags, waitForDataFrom -
Constructor Summary
ConstructorsConstructorDescriptionChangeBlockInteraction(WaitForDataFrom waitForDataFrom, InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, boolean cancelOnItemChange, Map<GameMode, InteractionSettings> settings, InteractionRules rules, int[] tags, InteractionCameraSettings camera, int next, int failed, boolean useLatestTarget, Map<Integer, Integer> blockChanges, int worldSoundEventIndex, boolean requireNotBroken) -
Method Summary
Modifier and TypeMethodDescriptionclone()static intcomputeBytesConsumed(io.netty.buffer.ByteBuf buf, int offset) intstatic ChangeBlockInteractiondeserialize(io.netty.buffer.ByteBuf buf, int offset) booleaninthashCode()intserialize(io.netty.buffer.ByteBuf buf) static ValidationResultvalidateStructure(io.netty.buffer.ByteBuf buffer, int offset) Methods inherited from class com.hypixel.hytale.protocol.Interaction
computeSizeWithTypeId, getTypeId, serializeWithTypeId
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
blockChanges
-
worldSoundEventIndex
public int worldSoundEventIndex -
requireNotBroken
public boolean requireNotBroken
-
-
Constructor Details
-
ChangeBlockInteraction
public ChangeBlockInteraction() -
ChangeBlockInteraction
public ChangeBlockInteraction(@Nonnull WaitForDataFrom waitForDataFrom, @Nullable InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, boolean cancelOnItemChange, @Nullable Map<GameMode, InteractionSettings> settings, @Nullable InteractionRules rules, @Nullable int[] tags, @Nullable InteractionCameraSettings camera, int next, int failed, boolean useLatestTarget, @Nullable Map<Integer, Integer> blockChanges, int worldSoundEventIndex, boolean requireNotBroken) -
ChangeBlockInteraction
-
-
Method Details
-
deserialize
@Nonnull public static ChangeBlockInteraction deserialize(@Nonnull io.netty.buffer.ByteBuf buf, int offset) -
computeBytesConsumed
public static int computeBytesConsumed(@Nonnull io.netty.buffer.ByteBuf buf, int offset) -
serialize
public int serialize(@Nonnull io.netty.buffer.ByteBuf buf) - Overrides:
serializein classSimpleBlockInteraction
-
computeSize
public int computeSize()- Overrides:
computeSizein classSimpleBlockInteraction
-
validateStructure
public static ValidationResult validateStructure(@Nonnull io.netty.buffer.ByteBuf buffer, int offset) -
clone
- Overrides:
clonein classSimpleBlockInteraction
-
equals
- Overrides:
equalsin classSimpleBlockInteraction
-
hashCode
public int hashCode()- Overrides:
hashCodein classSimpleBlockInteraction
-