Class GolfConfig.Packet

java.lang.Object
org.samo_lego.golfiv.storage.GolfConfig.Packet
Enclosing class:
GolfConfig

public static class GolfConfig.Packet extends Object
Outgoing packet settings.
  • Field Details

    • removeTeleportData

      public boolean removeTeleportData
      Whether to remove the teleport data from packets when entities move out of view distance. Status: working
    • removeHealthTags

      public boolean removeHealthTags
      Removes entity health data from packets sent to client.

      Status: working.

    • _comment_allowedHealthTags_1

      @SerializedName("// Allows health tags for certain entities.") public final String _comment_allowedHealthTags_1
      See Also:
    • _comment_allowedHealthTags_2

      @SerializedName("// This maps entity ID to percentage as decimal.") public final String _comment_allowedHealthTags_2
      See Also:
    • allowedHealthTags

      public it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap<net.minecraft.entity.EntityType<?>> allowedHealthTags
      Entities that must have health sent to render correctly.

      K -> Entities to allow health of. V -> Increments by percentage of health to allow.

      Implied by default is 1F, or alive and dead.

    • removeEquipmentTags

      public boolean removeEquipmentTags
      Removes entity equipment tags from packets. Players will still see if item is enchanted, but won't get the durability or stack size information.

      Status: working.

    • checkPortalHack

      public boolean checkPortalHack
      Whether to check if player is using Portals hack.
    • patchSoundExploits

      public boolean patchSoundExploits
      Whether to remove original coordinates for the sound, e.g. when summoning a wither / when lightning bolt strikes.
    • removeDroppedItemInfo

      public boolean removeDroppedItemInfo
      Whether to remove info about ground items. Can prevent chunk banning with items that are lying on ground.
    • patchItemKickExploit

      public boolean patchItemKickExploit
      Whether to cancel out sending too big packets. Patches "book-banning" and friends.
  • Constructor Details

    • Packet

      public Packet()