package com.hypixel.hytale.server.core.modules.entity.component;
import com.hypixel.hytale.codec.builder.BuilderCodec;
import com.hypixel.hytale.component.Component;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.server.core.modules.entity.EntityModule;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import javax.annotation.Nonnull;
public class Interactable implements Component<EntityStore> {
@Nonnull
public static final Interactable INSTANCE = new Interactable();
@Nonnull
public static final BuilderCodec<Interactable> CODEC = BuilderCodec.builder(Interactable.class, () -> INSTANCE).build();
public static ComponentType<EntityStore, Interactable> getComponentType() {
return EntityModule.get().getInteractableComponentType();
}
private Interactable() {
}
public Component<EntityStore> clone() {
return INSTANCE;
}
}