X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FControlledComponent.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FControlledComponent.java;h=29c78287f5fc2982345c1312bcab3129fe0b369d;hb=fa5196e029c48636f0c318311244395cfae49953;hp=0000000000000000000000000000000000000000;hpb=963ad1fcca51d8be2729e0dba4d6f46a69995679;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java b/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java new file mode 100644 index 0000000..29c7828 --- /dev/null +++ b/src/main/java/net/pterodactylus/sonitus/data/ControlledComponent.java @@ -0,0 +1,50 @@ +/* + * Sonitus - Controlled.java - Copyright © 2013 David Roden + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.pterodactylus.sonitus.data; + +import java.util.List; + +/** + * Interface for components that can be controlled externally in some way. + * + * @author David ‘Bombe’ Roden + */ +public interface ControlledComponent { + + /** + * Returns the name of this controlled component. + * + * @return The name of this controlled component + */ + public String name(); + + /** + * Returns the current metadata of this component. + * + * @return The current metadata of this component + */ + public Metadata metadata(); + + /** + * Returns the controllers offered by this component. + * + * @return The controllers of this component + */ + public List> controllers(); + +}