Skip to content

Commit

Permalink
Add Audience to CommandBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Oct 12, 2023
1 parent 46c9301 commit 35b45d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/
package org.spongepowered.api.block.entity;

import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import org.spongepowered.api.data.Keys;
import org.spongepowered.api.data.value.Value;
Expand All @@ -36,7 +37,7 @@
/**
* Represents a Command Block.
*/
public interface CommandBlock extends BlockEntity, Subject, LocaleSource, Nameable {
public interface CommandBlock extends BlockEntity, Subject, LocaleSource, Nameable, Audience {

/**
* Executes the currently stored command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/
package org.spongepowered.api.entity.vehicle.minecart;

import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import org.spongepowered.api.block.entity.CommandBlock;
import org.spongepowered.api.data.Keys;
Expand All @@ -36,7 +37,7 @@
/**
* Represents a {@link Minecart} with a {@link CommandBlock} inside it.
*/
public interface CommandBlockMinecart extends BlockOccupiedMinecart, LocaleSource, Subject {
public interface CommandBlockMinecart extends BlockOccupiedMinecart, LocaleSource, Subject, Audience {

/**
* Gets the currently stored command.
Expand Down

0 comments on commit 35b45d8

Please sign in to comment.