package net.rustnotmc.api.server; import net.rustnotmc.protocol.Hitbox; /** * The boxes of the models, on the server. * * A plugin that brings its own object says where its boxes are, and the game * uses them: for the collision, for the damage, and for the drawing that the * editor does. * * The boxes of our own models are in a file that the server reads, so that * they can be changed without touching any code. */ public interface Hitboxes { /** * Says where the boxes of a model are. * * A model that is already known is replaced, so a plugin may take a * model over. */ void register(String model, Hitbox[] boxes); /** The boxes of a model, or null when it has none. */ Hitbox[] of(String model); /** True when the model has boxes. */ boolean has(String model); }