mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Code style
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
ee95015ed3
commit
3977b6f967
@ -626,8 +626,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return the entity type
|
* @return the entity type
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull EntityType getEntityType() {
|
||||||
public EntityType getEntityType() {
|
|
||||||
return entityType;
|
return entityType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -636,8 +635,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return the entity unique id
|
* @return the entity unique id
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull UUID getUuid() {
|
||||||
public UUID getUuid() {
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -650,7 +648,6 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
// Refresh internal map
|
// Refresh internal map
|
||||||
Entity.ENTITY_BY_UUID.remove(this.uuid);
|
Entity.ENTITY_BY_UUID.remove(this.uuid);
|
||||||
Entity.ENTITY_BY_UUID.put(uuid, this);
|
Entity.ENTITY_BY_UUID.put(uuid, this);
|
||||||
|
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -668,8 +665,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return the entity bounding box
|
* @return the entity bounding box
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull BoundingBox getBoundingBox() {
|
||||||
public BoundingBox getBoundingBox() {
|
|
||||||
return boundingBox;
|
return boundingBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -868,8 +864,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return the entity vehicle, or null if there is not any
|
* @return the entity vehicle, or null if there is not any
|
||||||
*/
|
*/
|
||||||
@Nullable
|
public @Nullable Entity getVehicle() {
|
||||||
public Entity getVehicle() {
|
|
||||||
return vehicle;
|
return vehicle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -927,13 +922,11 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return an unmodifiable list containing all the entity passengers
|
* @return an unmodifiable list containing all the entity passengers
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull Set<@NotNull Entity> getPassengers() {
|
||||||
public Set<Entity> getPassengers() {
|
|
||||||
return Collections.unmodifiableSet(passengers);
|
return Collections.unmodifiableSet(passengers);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
protected @NotNull SetPassengersPacket getPassengersPacket() {
|
||||||
protected SetPassengersPacket getPassengersPacket() {
|
|
||||||
SetPassengersPacket passengersPacket = new SetPassengersPacket();
|
SetPassengersPacket passengersPacket = new SetPassengersPacket();
|
||||||
passengersPacket.vehicleEntityId = getEntityId();
|
passengersPacket.vehicleEntityId = getEntityId();
|
||||||
|
|
||||||
@ -1064,8 +1057,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return the entity pose
|
* @return the entity pose
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull Pose getPose() {
|
||||||
public Pose getPose() {
|
|
||||||
return this.entityMeta.getPose();
|
return this.entityMeta.getPose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1253,8 +1245,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
*
|
*
|
||||||
* @return an unmodifiable list of all this entity effects
|
* @return an unmodifiable list of all this entity effects
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public @NotNull List<@NotNull TimedPotion> getActiveEffects() {
|
||||||
public List<TimedPotion> getActiveEffects() {
|
|
||||||
return Collections.unmodifiableList(effects);
|
return Collections.unmodifiableList(effects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user