mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +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
|
||||
*/
|
||||
@NotNull
|
||||
public EntityType getEntityType() {
|
||||
public @NotNull EntityType getEntityType() {
|
||||
return entityType;
|
||||
}
|
||||
|
||||
@ -636,8 +635,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
*
|
||||
* @return the entity unique id
|
||||
*/
|
||||
@NotNull
|
||||
public UUID getUuid() {
|
||||
public @NotNull UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@ -650,7 +648,6 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
// Refresh internal map
|
||||
Entity.ENTITY_BY_UUID.remove(this.uuid);
|
||||
Entity.ENTITY_BY_UUID.put(uuid, this);
|
||||
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
@ -668,8 +665,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
*
|
||||
* @return the entity bounding box
|
||||
*/
|
||||
@NotNull
|
||||
public BoundingBox getBoundingBox() {
|
||||
public @NotNull BoundingBox getBoundingBox() {
|
||||
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
|
||||
*/
|
||||
@Nullable
|
||||
public Entity getVehicle() {
|
||||
public @Nullable Entity getVehicle() {
|
||||
return vehicle;
|
||||
}
|
||||
|
||||
@ -927,13 +922,11 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
*
|
||||
* @return an unmodifiable list containing all the entity passengers
|
||||
*/
|
||||
@NotNull
|
||||
public Set<Entity> getPassengers() {
|
||||
public @NotNull Set<@NotNull Entity> getPassengers() {
|
||||
return Collections.unmodifiableSet(passengers);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected SetPassengersPacket getPassengersPacket() {
|
||||
protected @NotNull SetPassengersPacket getPassengersPacket() {
|
||||
SetPassengersPacket passengersPacket = new SetPassengersPacket();
|
||||
passengersPacket.vehicleEntityId = getEntityId();
|
||||
|
||||
@ -1064,8 +1057,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
*
|
||||
* @return the entity pose
|
||||
*/
|
||||
@NotNull
|
||||
public Pose getPose() {
|
||||
public @NotNull Pose 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
|
||||
*/
|
||||
@NotNull
|
||||
public List<TimedPotion> getActiveEffects() {
|
||||
public @NotNull List<@NotNull TimedPotion> getActiveEffects() {
|
||||
return Collections.unmodifiableList(effects);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user