forked from GeyserMC/Geyser
Begin work on ender crystal support
This commit is contained in:
parent
6dbb09de81
commit
392d2ca6f7
2 changed files with 20 additions and 1 deletions
|
@ -0,0 +1,19 @@
|
||||||
|
package org.geysermc.connector.entity;
|
||||||
|
|
||||||
|
import com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata;
|
||||||
|
import com.nukkitx.math.vector.Vector3f;
|
||||||
|
import org.geysermc.connector.entity.type.EntityType;
|
||||||
|
import org.geysermc.connector.network.session.GeyserSession;
|
||||||
|
|
||||||
|
public class EnderCrystalEntity extends Entity {
|
||||||
|
|
||||||
|
public EnderCrystalEntity(long entityId, long geyserId, EntityType entityType, Vector3f position, Vector3f motion, Vector3f rotation) {
|
||||||
|
super(entityId, geyserId, entityType, position, motion, rotation);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
|
||||||
|
super.updateBedrockMetadata(entityMetadata, session);
|
||||||
|
}
|
||||||
|
}
|
|
@ -105,7 +105,7 @@ public enum EntityType {
|
||||||
EXPERIENCE_BOTTLE(ThrowableEntity.class, 68, 0.25f, 0.25f),
|
EXPERIENCE_BOTTLE(ThrowableEntity.class, 68, 0.25f, 0.25f),
|
||||||
EXPERIENCE_ORB(ExpOrbEntity.class, 69, 0f),
|
EXPERIENCE_ORB(ExpOrbEntity.class, 69, 0f),
|
||||||
EYE_OF_ENDER(Entity.class, 70, 0f),
|
EYE_OF_ENDER(Entity.class, 70, 0f),
|
||||||
END_CRYSTAL(Entity.class, 71, 0f),
|
END_CRYSTAL(EnderCrystalEntity.class, 71, 0f),
|
||||||
FIREWORK_ROCKET(Entity.class, 72, 0f),
|
FIREWORK_ROCKET(Entity.class, 72, 0f),
|
||||||
TRIDENT(ArrowEntity.class, 73, 0f),
|
TRIDENT(ArrowEntity.class, 73, 0f),
|
||||||
TURTLE(AnimalEntity.class, 74, 0.4f, 1.2f),
|
TURTLE(AnimalEntity.class, 74, 0.4f, 1.2f),
|
||||||
|
|
Loading…
Reference in a new issue