Package org.samo_lego.golfiv.storage
Class GolfConfig.Packet
java.lang.Object
org.samo_lego.golfiv.storage.GolfConfig.Packet
- Enclosing class:
- GolfConfig
Outgoing packet settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
final String
it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap<net.minecraft.entity.EntityType<?>>
Entities that must have health sent to render correctly.boolean
Whether to check if player is using Portals hack.boolean
Whether to cancel out sending too big packets.boolean
Whether to remove original coordinates for the sound, e.g.boolean
Whether to remove info about ground items.boolean
Removes entity equipment tags from packets.boolean
Removes entity health data from packets sent to client.boolean
Whether to remove the teleport data from packets when entities move out of view distance. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
removeTeleportData
public boolean removeTeleportDataWhether to remove the teleport data from packets when entities move out of view distance. Status: working -
removeHealthTags
public boolean removeHealthTagsRemoves 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<?>> allowedHealthTagsEntities 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 removeEquipmentTagsRemoves 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 checkPortalHackWhether to check if player is using Portals hack. -
patchSoundExploits
public boolean patchSoundExploitsWhether to remove original coordinates for the sound, e.g. when summoning a wither / when lightning bolt strikes. -
removeDroppedItemInfo
public boolean removeDroppedItemInfoWhether to remove info about ground items. Can prevent chunk banning with items that are lying on ground. -
patchItemKickExploit
public boolean patchItemKickExploitWhether to cancel out sending too big packets. Patches "book-banning" and friends.
-
-
Constructor Details
-
Packet
public Packet()
-