mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-02-21 14:31:23 +01:00
Rename parameter
This commit is contained in:
parent
7efacd31f9
commit
7f70cd7b08
@ -17,8 +17,8 @@ public class APIItemHologramLine extends BaseItemHologramLine implements ItemHol
|
||||
private PickupListener pickupListener;
|
||||
private ClickListener clickListener;
|
||||
|
||||
public APIItemHologramLine(APIHologram parent, ItemStack itemStack) {
|
||||
super(parent, itemStack);
|
||||
public APIItemHologramLine(APIHologram hologram, ItemStack itemStack) {
|
||||
super(hologram, itemStack);
|
||||
}
|
||||
|
||||
public @Nullable PickupListener getPickupListener() {
|
||||
|
@ -12,18 +12,18 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class APITextHologramLine extends BaseTextHologramLine implements TextHologramLine, APIClickableHologramLine {
|
||||
|
||||
private final APIHologram parent;
|
||||
private final APIHologram hologram;
|
||||
|
||||
private ClickListener clickListener;
|
||||
|
||||
public APITextHologramLine(APIHologram parent, String text) {
|
||||
super(parent, text);
|
||||
this.parent = parent;
|
||||
public APITextHologramLine(APIHologram hologram, String text) {
|
||||
super(hologram, text);
|
||||
this.hologram = hologram;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowPlaceholders() {
|
||||
return parent.isAllowPlaceholders();
|
||||
return hologram.isAllowPlaceholders();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -14,19 +14,19 @@ import org.bukkit.inventory.ItemStack;
|
||||
@SuppressWarnings("deprecation")
|
||||
public class V2ItemLine extends BaseItemHologramLine implements ItemLine, V2CollectableLine, V2TouchableLine {
|
||||
|
||||
private final V2Hologram parent;
|
||||
private final V2Hologram hologram;
|
||||
|
||||
private TouchHandler touchHandler;
|
||||
private PickupHandler pickupHandler;
|
||||
|
||||
public V2ItemLine(V2Hologram parent, ItemStack itemStack) {
|
||||
super(parent, itemStack);
|
||||
this.parent = parent;
|
||||
public V2ItemLine(V2Hologram hologram, ItemStack itemStack) {
|
||||
super(hologram, itemStack);
|
||||
this.hologram = hologram;
|
||||
}
|
||||
|
||||
@Override
|
||||
public V2Hologram getParent() {
|
||||
return parent;
|
||||
return hologram;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -12,23 +12,23 @@ import me.filoghost.holographicdisplays.plugin.hologram.base.BaseTextHologramLin
|
||||
@SuppressWarnings("deprecation")
|
||||
public class V2TextLine extends BaseTextHologramLine implements TextLine, V2TouchableLine {
|
||||
|
||||
private final V2Hologram parent;
|
||||
private final V2Hologram hologram;
|
||||
|
||||
private TouchHandler touchHandler;
|
||||
|
||||
public V2TextLine(V2Hologram parent, String text) {
|
||||
super(parent, text);
|
||||
this.parent = parent;
|
||||
public V2TextLine(V2Hologram hologram, String text) {
|
||||
super(hologram, text);
|
||||
this.hologram = hologram;
|
||||
}
|
||||
|
||||
@Override
|
||||
public V2Hologram getParent() {
|
||||
return parent;
|
||||
return hologram;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowPlaceholders() {
|
||||
return parent.isAllowPlaceholders();
|
||||
return hologram.isAllowPlaceholders();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -24,7 +24,7 @@ public abstract class BaseHologramLine extends BaseHologramComponent implements
|
||||
private Position position;
|
||||
|
||||
protected BaseHologramLine(BaseHologram hologram) {
|
||||
Preconditions.notNull(hologram, "parent hologram");
|
||||
Preconditions.notNull(hologram, "hologram");
|
||||
this.hologram = hologram;
|
||||
this.tracker = createTracker(hologram.getTrackerManager());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user