Skip to content

Instantly share code, notes, and snippets.

View TheMode's full-sized avatar

TheMode

  • France
View GitHub Profile
@TheMode
TheMode / PhysicsWorld.java
Created August 18, 2024 15:48
Minestom scratch PhysX
package net.minestom.scratch.world;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import net.minestom.server.collision.Aerodynamics;
import net.minestom.server.collision.BoundingBox;
import net.minestom.server.collision.ShapeImpl;
import net.minestom.server.coordinate.CoordConversionUtils;
import net.minestom.server.coordinate.Point;
import net.minestom.server.coordinate.Pos;
@TheMode
TheMode / changes.md
Last active September 16, 2024 00:27
Minestom 1.21.2 update

Breaking changes

  • Entity.Pose becomes EntityPose
  • Player.Hand becomes PlayerHand
  • Range has been reworked with all the number impl as subclasses (used for the command range argument)
  • RelativeVec has been made record, and package moved to coordinate
  • ChunkUtils has been broken down into CoordConversion and ChunkRange
  • Player.Settings becomes ClientSettings and immutable
  • Removed NotificationCenter in favor of Player.sendNotification
  • The chat format function has been removed in favor of PlayerChatEvent.setFormattedMessage