mirror of
				https://e.coding.net/circlecloud/YumCore.git
				synced 2025-11-03 23:06:02 +00:00 
			
		
		
		
	@@ -48,6 +48,19 @@ public class Tellraw {
 | 
				
			|||||||
        return new Tellraw(text);
 | 
					        return new Tellraw(text);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * 创建Tellraw
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param text
 | 
				
			||||||
 | 
					     *            文本
 | 
				
			||||||
 | 
					     * @param objects
 | 
				
			||||||
 | 
					     *            参数
 | 
				
			||||||
 | 
					     * @return {@link Tellraw}
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public static Tellraw create(final String text, final Object... objects) {
 | 
				
			||||||
 | 
					        return new Tellraw(String.format(text, objects));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 发送Tellraw公告
 | 
					     * 发送Tellraw公告
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
@@ -224,6 +237,19 @@ public class Tellraw {
 | 
				
			|||||||
        return then(name).item(ItemSerialize.$(item));
 | 
					        return then(name).item(ItemSerialize.$(item));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * 结束上一串消息 开始下一串数据
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param text
 | 
				
			||||||
 | 
					     *            新的文本
 | 
				
			||||||
 | 
					     * @param objects
 | 
				
			||||||
 | 
					     *            参数
 | 
				
			||||||
 | 
					     * @return {@link Tellraw}
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public Tellraw then(final String text, final Object... objects) {
 | 
				
			||||||
 | 
					        return then(new MessagePart(String.format(text, objects)));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 悬浮消息
 | 
					     * 悬浮消息
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user